Part Number Hot Search : 
ATS02 BPC2506 NTE1673 TB2600M SA103 54FCT 54FCT PA84A
Product Description
Full Text Search
 

To Download W83877TD Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  winbond i/o w83877tf/w83877tg release date: may 2006 version: 0.7
w83877tf/w83877tg publication release date: may 2006 -i- revision 0.7 w83877tf datasheet revision history pages dates version version on web main contents 1 n.a. 03/20/97 0.50 not published, for internal reference only. 2 n.a. 05/20/97 0.60 first published. 3 1, 8, 9, 63, 65, 78, 80,104- 107, 116, 118, 119, 133 03/20/98 0.61 typo correct ion and data calibrated 4 n.a. 05/04/06 0.7 add the lead-free parts w83877tg 5 6 7 8 9 10
w83877tf/w83877tg -ii - table of contents- 1. general des cription ............................................................................................................ .. 1 2. features ....................................................................................................................... ............... 2 3. pin config urati on .............................................................................................................. ...... 4 4. pin des cription............................................................................................................... .......... 5 4.1 host inte rface................................................................................................................. ......... 5 4.2 serial port interface .......................................................................................................... ...... 7 4.3 multi-mode pa rallel port....................................................................................................... ... 8 4.4 fdc inte rface.................................................................................................................. ...... 13 5. fdc functional description .............................................................................................. 15 5.1 w83877tf/tg fdc .............................................................................................................. 15 5.1.1 at inte rface ................................................................................................................... ......... 15 5.1.2 fifo (d ata) .................................................................................................................... ........ 15 5.1.3 data s eparat or ................................................................................................................. ...... 16 5.1.4 write precom pensatio n .......................................................................................................... 16 5.1.5 perpendicular re cording mode .............................................................................................. 16 5.1.6 tape dr ive..................................................................................................................... ......... 17 5.1.7 fdc co re ....................................................................................................................... ........ 17 5.1.8 fdc co mmands ................................................................................................................... .. 17 5.1.9 fdc instruct ion se ts ........................................................................................................... ... 18 5.2 register de scriptions .......................................................................................................... .. 26 5.2.1 status register a (sa regi ster) (read base address + 0)..................................................... 26 5.2.2 status register b (sb regi ster) (read base address + 1)..................................................... 28 5.2.3 digital output register (do r egister) (write base addre ss + 2) ............................................ 30 5.2.4 tape drive register (td regi ster) (read base address + 3)................................................. 30 5.2.5 main status register (ms r egister) (read bas e address + 4)............................................... 31 5.2.6 data rate register (dr regi ster) (write bas e address + 4) .................................................. 31 5.2.7 fifo register (r/w base addre ss + 5) .................................................................................. 33 5.2.8 digital input register (di r egister) (read bas e address + 7)................................................. 34 5.2.9 configuration control r egister (cc register) (w rite base addr ess + 7) ................................ 36 6. uart port...................................................................................................................... ............. 37 6.1 universal asynchronous receiver/t ransmitter (uart a, uart b) .................................... 37 6.2 register address............................................................................................................... .... 37 6.2.1 uart control register (ucr) (r ead/writ e) .......................................................................... 38 6.2.2 uart status register (usr) (r ead/writ e) ............................................................................ 39 6.2.3 handshake control regist er (hcr) (r ead/writ e) .................................................................. 40 6.2.4 handshake status regist er (hsr) (r ead/writ e).................................................................... 41
w83877tf/w83877tg publication release date: may 2006 -iii- revision 0.7 6.2.5 uart fifo control regist er (ufr) (w rite only).................................................................... 42 6.2.6 interrupt status regi ster (isr) (read onl y) ............................................................................ 43 6.2.7 interrupt control regist er (icr) (r ead/writ e)......................................................................... 44 6.2.8 programmable baud generator (bll/bhl) (read/wr ite)....................................................... 44 6.2.9 user-defined register (udr) (r ead/writ e) ............................................................................ 45 7. parallel port ................................................................................................................. ........ 46 7.1 printer inte rface logic ........................................................................................................ ... 46 7.2 enhanced parallel port (epp)............................................................................................... 48 7.2.1 data swapper ................................................................................................................... ...... 48 7.2.2 printer stat us bu ffer .......................................................................................................... ..... 48 7.2.3 printer control latch and printer cont rol sw apper ................................................................. 49 7.2.4 epp addre ss port............................................................................................................... .... 49 7.2.5 epp data po rt 0-3 .............................................................................................................. .... 50 7.2.6 bit map of parallel po rt and epp r egister s............................................................................ 50 7.2.7 epp pin descr ipti ons ........................................................................................................... .. 51 7.2.8 epp operat ion .................................................................................................................. ..... 51 7.3 extended capabilities pa rallel (ecp ) po rt............................................................................ 52 7.3.1 ecp register and mode defi niti ons ....................................................................................... 52 7.3.2 data and ecpa fifo port ......................................................................................................... . 53 7.3.3 device status r egister (dsr) ................................................................................................ 53 7.3.4 device control register (dcr)............................................................................................... 54 7.3.5 cfifo (parallel port data fifo) mode = 010 ........................................................................... 54 7.3.6 ecpdfifo (ecp data fifo) m ode = 011................................................................................. 54 7.3.7 tfifo (test fifo mode) m ode = 110 ....................................................................................... 55 7.3.8 cnfga (configuration r egister a) mode = 111 ........................................................................ 55 7.3.9 cnfgb (configuration r egister b) mode = 111 ........................................................................ 55 7.3.10 ecr (extended control r egister) m ode = al l............................................................................ 56 7.3.11 bit map of ecp po rt regi sters ............................................................................................... 57 7.3.12 ecp pin de scripti ons ........................................................................................................... .. 58 7.3.13 ecp oper ation .................................................................................................................. ..... 59 7.3.14 fifo oper ation ................................................................................................................. ..... 59 7.3.15 dma trans fers .................................................................................................................. ..... 60 7.3.16 programmed i/o (n on-dma) mode....................................................................................... 60 7.4 extension fdd mode (ex tfdd) .......................................................................................... 60 7.5 extension 2fdd mode (ext 2fdd) ...................................................................................... 60 8. plug and play configura tion ........................................................................................... 61 9. acpi /legacy feature and auto power management ............................................... 61 9.1 acpi/legacy pow er m anagement ........................................................................................ 61 9.2 device(auto) power m anagement ......................................................................................... 61
w83877tf/w83877tg -iv - 10. serial irq ..................................................................................................................... .............. 62 10.1 start fr ame .................................................................................................................... ....... 63 10.2 irq/data frame................................................................................................................. ... 63 10.3 stop fr ame ..................................................................................................................... ...... 64 10.4 reset and init ializat ion ....................................................................................................... ... 64 11. extended functio n registers .......................................................................................... 65 11.1 extended functions enable registers (efers)................................................................... 65 11.2 extended function index regist ers (efirs), extended functi on data registers(efdrs) . 66 11.2.1 configuration register 0 (cr0), def ault = 00h ....................................................................... 66 11.2.2 configuration register 1 (cr1), def ault = 00h ....................................................................... 67 11.2.3 configuration register 2 (cr2), def ault = 00h ....................................................................... 68 11.2.4 configuration register 3 (cr3), def ault = 30h ....................................................................... 68 11.2.5 configuration register 4 (cr4), def ault = 00h ....................................................................... 69 11.2.6 configuration register 5 (cr5), def ault = 00h ....................................................................... 70 11.2.7 configuration register 6 (cr6), def ault = 00h ....................................................................... 70 11.2.8 configuration register 7 (cr7), def ault = 00h ....................................................................... 72 11.2.9 configuration register 8 (cr8), def ault = 00h ....................................................................... 73 11.2.10 configuration register 9 (cr9), def ault = 0ch ...................................................................... 74 11.2.11 configuration register a (cr0a), def ault = 00h .................................................................... 75 11.2.12 configuration register b (cr0b), def ault = 0ch.................................................................... 75 11.2.13 configuration register c (cr0c), def ault = 28h .................................................................... 76 11.2.14 configuration register d (cr0d), def ault = a3h ................................................................... 78 11.2.15 configuration register e (cr0e), configuration regi ster f (cr0f) ...................................... 79 11.2.16 configuration register 10 (cr10), def ault = 00h ................................................................... 80 11.2.17 configuration register 11 (cr11), def ault = 00h ................................................................... 80 11.2.18 configuration register 12 (cr12), def ault = 00h ................................................................... 81 11.2.19 configuration register 13 (cr13), def ault = 00h ................................................................... 81 11.2.20 configuration register 14 (cr14), def ault = 00h ................................................................... 82 11.2.21 configuration register 15 (cr15), def ault = 00h ................................................................... 83 11.2.22 configuration register 16 (cr16), def ault = 04h ................................................................... 85 11.2.23 configuration register 17 (cr17), def ault = 00h ................................................................... 86 11.2.24 configuration register 18 (cr18), default= 00h ..................................................................... 87 11.2.25 configuration register 19 (cr19), default= 00h ..................................................................... 88 11.2.26 configuration regi ster 20 (cr 20) .......................................................................................... 89 11.2.27 configuration regi ster 23 (cr 23) .......................................................................................... 89 11.2.28 configuration regi ster 24 (cr 24) .......................................................................................... 90 11.2.29 configuration regi ster 25 (cr 25) .......................................................................................... 90 11.2.30 configuration regi ster 26 (cr 26) .......................................................................................... 91 11.2.31 configuration regi ster 27 (cr 27) .......................................................................................... 91 11.2.32 configuration regi ster 28 (cr 28) .......................................................................................... 93
w83877tf/w83877tg publication release date: may 2006 -v- revision 0.7 11.2.33 configuration regi ster 29 (cr 29) .......................................................................................... 94 11.2.34 configuration register 2c (cr2c), default= 00h .................................................................... 94 11.2.35 configuration register 2d (cr2d), default= 00h .................................................................... 95 11.2.36 configuration register 31 (cr31), default= 00h ..................................................................... 96 11.2.37 configuration register 32 (cr32), default= 00h ..................................................................... 98 11.2.38 configuration register 33 (cr33), default= 00h ..................................................................... 99 11.2.39 configuration register 34 (cr34), default= 00h ..................................................................... 99 11.2.40 configuration register 35 (cr35), default= 00h ................................................................... 100 11.2.41 configuration register 36 (cr36), default= 00h ................................................................... 100 11.2.42 configuration register 37 (cr37), default= 00h ................................................................... 101 11.2.43 configuration register 38 (cr38), default= 00h ................................................................... 101 11.2.44 configuration register (cr39), default= 00h ........................................................................ 102 11.2.45 configuration register 3a (cr3a), default= 00h .................................................................. 102 11.2.46 configuration register 3b (cr3b), default= 00h .................................................................. 103 11.2.47 configuration register 40 (cr40), default= 00h ................................................................... 103 11.2.48 configuration register 41 (cr41), default= 00h ................................................................... 104 11.2.49 configuration register 42 (cr42), def ault=n/a.................................................................... 105 11.2.50 configuration register 43 (cr43), default= 00h ................................................................... 106 11.2.51 configuration register 44 (cr44), default= 00h ................................................................... 106 11.2.52 configuration register 45 (cr45), default= 00h ................................................................... 106 11.2.53 bit map configurat ion regi sters ........................................................................................... 107 11.3 acpi register s features .................................................................................................... 109 11.4 acpi register s (acpirs) ................................................................................................... 111 11.4.1 power management 1 status register 1 (pm1st s1) .......................................................... 112 11.4.2 power management 1 status register 2 (pm1st s2) .......................................................... 112 11.4.3 power management 1 enable register 1( pm1en1)............................................................. 113 11.4.4 power management 1 enable register 2 (pm1en 2)............................................................ 113 11.4.5 power management 1 control register 1 (pm1ct l1) ......................................................... 114 11.4.6 power management 1 control register 2 (pm1ct l2) ......................................................... 115 11.4.7 power management 1 control register 3 (pm1ct l3) ......................................................... 115 11.4.8 power management 1 control register 4 (pm1ct l4) ......................................................... 116 11.4.9 power management 1 ti mer 1 (pm1 tmr1) ......................................................................... 116 11.4.10 power management 1 ti mer 2 (pm1 tmr2) ......................................................................... 117 11.4.11 power management 1 ti mer 3 (pm1 tmr3) ......................................................................... 117 11.4.12 power management 1 ti mer 4 (pm1 tmr4) ......................................................................... 118 11.4.13 general purpose event 0 stat us register 1 (gp0st s1) ..................................................... 118 11.4.14 general purpose event 0 stat us register 2 (gp0st s2) ..................................................... 119 11.4.15 general purpose event 0 e nable register 1 (gp0 en1) ...................................................... 119 11.4.16 general purpose event 0 e nable register 2 (gp0 en2) ...................................................... 120 11.4.17 general purpose event 1 stat us register 1 (gp1st s1) ..................................................... 121
w83877tf/w83877tg -vi - 11.4.18 general purpose event 1 stat us register 2 (gp1st s2) ..................................................... 121 11.4.19 general purpose event 1 e nable register 1 (gp1 en1) ...................................................... 122 11.4.20 general purpose event 1 e nable register 2 (gp1 en2) ...................................................... 122 11.4.21 bit map configurat ion regi sters ........................................................................................... 123 12. specificat ions ................................................................................................................. ...... 124 12.1 absolute maxi mum ra tings ................................................................................................ 124 12.2 dc character istics .................................................................................................... 124 12.3 ac characte ristics ............................................................................................................. . 126 12.3.1 fdc: data rate = 1 mb/500 kb/300 kb/ 250 kb/se c. ........................................................... 126 12.3.2 uart/para llel po rt ............................................................................................................. .. 128 12.3.3 parallel port m ode parame ters............................................................................................. 128 12.3.4 epp data or address read cycle timing parame ters......................................................... 129 12.3.5 epp data or address write cycle timing parame ters ......................................................... 130 12.3.6 parallel port fifo timing para meters.................................................................................. 131 12.3.7 ecp parallel port forw ard timing pa ramete rs .................................................................... 131 12.3.8 ecp parallel port reve rse timing pa ramete rs .................................................................... 131 13. timing w aveforms ............................................................................................................... . 132 13.1 fdc ............................................................................................................................ ......... 132 13.2 uart/par allel .................................................................................................................. ... 133 13.2.1 modem contro l timi ng ......................................................................................................... 134 13.3 parallel port.................................................................................................................. ....... 135 13.3.1 parallel port timing ........................................................................................................... ... 135 13.3.2 epp data or address read cycle (epp ve rsion 1.9) .......................................................... 136 13.3.3 epp data or address write cycle (epp ve rsion 1.9)........................................................... 137 13.3.4 epp data or address read cycle (epp ve rsion 1.7) .......................................................... 138 13.3.5 epp data or address write cycle (epp ve rsion 1.7)........................................................... 139 13.3.6 parallel port fifo timing ..................................................................................................... 139 13.3.7 ecp parallel port forward timing........................................................................................ 140 13.3.8 ecp parallel port reverse timing........................................................................................ 140 14. application circui ts ........................................................................................................... 141 14.1 parallel port ex tension fdd ............................................................................................... 141 14.2 parallel port ex tension 2fdd ............................................................................................. 142 14.3 four f dd m ode .................................................................................................................. 142 15. ordering in format ion........................................................................................................ 143 16. how to read th e top marking......................................................................................... 144 17. package dime nsion .............................................................................................................. 145
w83877tf/w83877tg publication release date: may 2006 -1- revision 0.7 1. general description w83877tf/tg is an enhanced version from winbond's most popular i/o chip w83877f --- which integrates the disk drive adapter, serial port (uar t), irda 1.0 sir, parallel port, configurable plug- and-play registers for the whole chip --- plus additional powerful features: acpi / legacy power management, serial irq, and irq sharing . the disk drive adapter functions of w83877tf/tg in clude a floppy disk controller compatible with the industry standard 82077/765, data separator, write pre- compensation circuit, decode logic, data rate selection, clock generator, drive in terface control logic, interrupt and dma logic. the wide range of functions integrated into w83877tf/tg greatly reduces the number of components required for interfacing with floppy disk drives. w83877tf/tg supports four 360k, 720k, 1.2m, 1.44m, or 2.88m disk drives and data transfer rates of 250 kb/s, 300 kb/s, 500 kb/s,1 mb/s, and 2 mb/s. w83877tf/tg provides two high-speed serial comm unication ports (uarts), one of which supports serial infrared communication. each uart incl udes a 16-byte send/receive fifo, a programmable baud rate generator, complete modem control capabilit y, and a processor interrupt system. one of the uarts support infrared (ir) irda1.0. both uarts provide legacy speed with baud rate up to 115.2k and provide advanced speed with baud rate up to 230k , 460k , and 921k bps which support higher speed modems. w83877tf/tg supports one pc-compatible printer por t (spp), bi-directional printer port (bpp) and also enhanced parallel port (epp) and extended capab ilities port (ecp). through the printer port interface pins, also available are: extensi on fdd mode and extension 2fdd mode allowing one or two external floppy disk drives to be connected. this function is especially valuable for notebook computer applications. winbond w83877tf/tg provides func tions that comply with acpi (advanced configuration and power interface), which includes support of l egacy and acpi power management through smi or sci function pins. one 24-bits power management timer is implemented with the carry notify interrupt. w83877tf/tg also has auto power management mode to reduce the power consumption. the serial irq for pci architecture is supported, isa irqs (irq1~irq15) can be cascaded into one irqser pin. w83877tf/tg also features isa bus irq sharing and allows two or more devices to share the same irq pin. w83877tf/tg is made to fully comply with microsoft tm pc97 hardware design guide . irqs, dmas, and i/o space resources are flexible to adjust to meet isa pnp requirement. moreover w83877tf/tg is made to meet the specification of pc97's requirement in the power management: acpi and dpm (device power management). the configuration registers support mode selecti on, function enable/disable, and power down function selection. furthermore, the configurable pnp regist ers are compatible with the plug-and-play feature demand of windows 95 tm , which makes system resource allocation more efficient than ever. another benefit of w83877tf/tg is t hat it is pin-to-pin compatible to w83877f, and all of the 100-pin winbond i/o ic family. thus makes the design of applications very convenient and flexible.
w83877tf/w83877tg -2 - 2. features general: y plug & play 1.0a compliant y support 8 irqs (isa), or 15 irqs (serial irq), 3 dma channels, and 480 re-locatable address y capable of isa bus irq sharing y comply with microsoft pc 97 hardware design guide y support dpm (device power management), acpi y report acpi status inte rrupt by sci signal from sci pin, serial irq irqser pin, or irq a~h pins y single 24mhz/48mhz clock input fdc: y compatible with ibm pc at disk drive systems y variable write pre-compensation with track selectable capability y dma enable logic y supports floppy disk drives and tape drives y detects all overrun and underrun conditions y built-in address mark detection circuit to simplify the read electronics y fdd anti-virus functions with software writ e protect and fdd write enable signal (write data signalwas forced to be inactive) y supports up to four 3.5-inch or 5.25-inch floppy disk drives y completely compatible with industry standard 82077 y 360k/720k/1.2m/1.44m/2.88m format; 250k, 300k, 500k, 1m, 2m bps data transfer rate y supports vertical recording format y support 3-mode fdd, and its win95 driver y 16-byte data fifos uart: y two high-speed 16550 compatible uarts with 16-byte send/receive fifos y midi compatible y fully programmable serial-interface characteristics: ? ? ? y internal diagnostic capabilities: ? ?
w83877tf/w83877tg publication release date: may 2006 -3- revision 0.7 y programmable baud generator allows division of 1.8461 mhz and 24 mhz by 1 to (2 16 -1) y maximum baud rate is up to 921k bps for 14.768mhz and 1.5m bps for 24mhz infrared: y supports irda version 1.0 sir protocol with maximum baud rate up to 115.2k bps y supports sharp ask-ir protocol with maximum baud rate up to 57600 bps parallel port: y compatible with ibm parallel port y supports ps/2 compatible bi-directional parallel port y supports enhanced parallel port (epp) ? compatible with ieee 1284 specification y supports extended capabilities port (ecp) ? compatible with ieee 1284 specification y extension fdd mode supports disk drive b; and extension 2fdd mode supports disk drives a and b through parallel port y enhanced printer port back-drive current protection others: y programmable configuration settings y immediate or automatic power- down mode for the power management y all hardware power-on settings have internal pull-up or pull-down resistors as default value y dedicated infrared communication pins package: y 100-pin qfp (w83877tf/tg), and also 100-pin lqfp (W83877TD/tg)
w83877tf/w83877tg -4 - 3. pin configuration / m o b / m o a / t r a k 0 n w p / d s k c h g a 1 0 / r d a t a d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 g n d / i o w / i o r a e n a 9 a 8 a 7 a 6 a 5 v d d a 4 a 3 a 2 a 1 a 0 x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 1 2 3 4 5 6 7 8 9 101112131415161718192021222324252627282930 rib dcdb dsrb ctsb dtrb rtsb irq_c soutb sinb dack_a gnd drq_a souta irq_d rtsa dtra ctsa dsra dcda ria i r q g / c s / s c i d r q | c i o c h r d y m r c l k i n / s m i p d 0 p d 1 p d 2 p d 3 p d 4 v d d p d 5 p d 6 p d 7 / d a c k | c / s t b / a f d / i n i t / s l i n i r q | e b u s y g n d / a c k p e s l c t / e r r s i n a index step dsa dsb we wd rwc head dir gnd irq_h irq_b irqin irrx2 irtx2 irq_a tc dack_b irq_f drq_b
w83877tf/w83877tg publication release date: may 2006 -5- revision 0.7 4. pin description (note: refer to section 12.2 dc characteristics for details.) i/o8tc - ttl level output pin with 8 ma source-sink capability; cmos level input voltage i/o12t - ttl level bi-directional pi n with 12 ma source-sink capability i/o24t - ttl level bi-directional pi n with 24 ma source-sink capability out8t - ttl level output pin with 8 ma source-sink capability out12t - ttl level output pin with 12 ma source-sink capability od12 - open-drain output pin with 12 ma sink capability od24 - open-drain output pin with 24 ma sink capability int - ttl level input pin ints - ttl level schmitt-triggered input pin inc - cmos level input pin incs - cmos level schmitt-triggered input pin 4.1 host interface symbol pin i/o function d0 ? ?
w83877tf/w83877tg -6 - host interface, continued symbol pin i/o function irq_ a 96 out 12t interrupt request signal a, when cr16 bit 5 (g1iqsel) = 0. gio1 i/o 12t general purpose i/o port 1, when cr16 bit 5 (g1iqsel) = 1. irq_ b 92 out 12t interrupt request signal b, when cr16 bit 4 (g0iqsel) = 0. gio0 i/o 12t general purpose i/o port 0, when cr16 bit 4 (g0iqsel) = 1. irq_c 44 out 12t interrupt request signal c. irq_d 37 out 12t interrupt request signal d. irq_e 23 out 12t interrupt request signal e. irq_f 99 out 12t interrupt request signal f. irq_g 1 out 12t interrupt request signal g. pciclk in t pci clock input, when the serial irq function is selected. irq_h 91 out 12t interrupt request signal h. serirq i/o 12t serial interrupt input/output, when the serial irq mode is selected by setting irqmods bit in cr31 register. sci 3 od 12 for the acpi power management, sci is active low 200ns for the power management events, which generate an sci interrupt in the acpi mode. clkin 7 in t 24mhz/48mhz clock input. clkinsel bit in cr2c register should be correctly reset/set according to the input frequency. smi 8 od 12 for the legacy power management, the smi is active low 200ns for the power management events, which generate an smi interrupt in the legacy power management mode. this smi output is enabled by setting the smi_en bit in cr3a register. dack_ a 41 in ts dma acknowledge signal a. drq_a 39 out 12t dma request signal a.
w83877tf/w83877tg publication release date: may 2006 -7- revision 0.7 4.2 serial port interface symbol pin i/o function sina sinb/irrx1 30 42 in t serial input. it is used to receive serial data from the communication link. ri a rib 31 50 in t ring indicator. an active low indicates that a ring signal is being received by the modem or data set. dcda dcdb 32 49 in t data carrier detect. an active low indicates the modem or data set has detected a data carrier. dsra dsrb 33 48 in t data set ready. an active low indicates the modem or data set is ready to establish a communication link and transfer data to the uart. ctsa 34 in t clear to send. it is the modem control input. ctsb 47 the function of these pins can be tested by reading bit 4 of the handshake status register. dtra 35 i/o 8tc uart a data terminal ready. an active low informs the modem or data set that the controller is ready to communicate. phefras during power-on reset, this pin is pulled down internally and is defined as phefras, which provides the power-on value for cr16 bit 0 (hefras). while it is at low, it selects the efer (extended functions enable register) to be 250h. while it is at high, it selects the efer to be 3f0h. a 4.7 k
w83877tf/w83877tg -8 - serial port interface, continued symbol pin i/o function soutb irtx1 pirqmds 43 i/o 8tc uart b serial output. it is used to transmit serial data out to the communication link. during power-on reset, this pin is pulled down internally and is defined as pirqmds to select the irq mode. while it is at low, irq pins can be set to normal mode or irq sharing mode which decided by cr18. if it is at high, the serial irq mode is selected. a 4.7 k is recommended when intending to pull up at power-on reset. rtsb 45 i/o 8tc uart b request to send. an active low informs the modem or data set that the controller is ready to send data. pgoiqsel during power-on reset, this pin is pulled down internally and is defined as pgoiqsel, which provides the power-on value for cr16 bit 4 and bit 5 (g0iqsel & g1iqsel). while it is at low, pins 92 and 96 function as irq pi ns irq_b,irq_a respectively. while it is at high, pins 92 and 96 function as general purpose i/o pins gio0,gio1 respectively. a 4.7 k is recommended when intends to pull up at power-on reset. dtrb 46 i/o 8tc uart b data terminal ready. an active low informs the modem or data set that the controller is ready to communicate. irtx2 95 out 12t functions as a infrared data transmission line. irrx2 94 in t functions as a infrared data receiving line. 4.3 multi-mode parallel port the following pins have six functions, which ar e controlled by bits prtmod0, prtmod1, and prtmod2 of cr0 and cr9 (refer to section 11.0, extended functions). symbol pin i/o function busy 24 in t printer mode: busy an active high input indicates that the printer is not ready to receive data. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: mob2 this pin is for extension fdd b; the function of this pin is the same as that of the mob pin. od 12 extension 2fdd mode: mob2 this pin is for extension fdd a and b; the function of this pin is the same as that of the mob pin.
w83877tf/w83877tg publication release date: may 2006 -9- revision 0.7 multi-mode parallel port, continued symbol pin i/o function a ck 26 in t printer mode: a ck an active low input on this pin indicates that the printer has received data and is ready to accept more data. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: dsb2 this pin is for the extension fdd b; its functions are the same as those of the dsb pin. od 12 extension 2fdd mode: dsb2 this pin is for extension fdd a and b; the function of this pin is the same as that of the dsb pin. pe 27 in t printer mode: pe an active high input on this pin indicates that the printer has detected the end of the paper. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: wd2 this pin is for extension fdd b; its function is the same as that of the wd pin. od 12 extension 2fdd mode: wd2 this pin is for extension fdd a and b; this function of this pin is the same as that of the wd pin. slct 28 in t printer mode: slct an active high input on this pin indicates that the printer is selected. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: we2 this pin is for extension fdd b; its functions are the same as those of the we pin. od 12 extension 2fdd mode: we2 this pin is for extension fdd a and b; this function of this pin is the same as that of the we pin.
w83877tf/w83877tg -10 - multi-mode parallel port, continued symbol pin i/o function err 29 in t printer mode: err an active low input on this pin indicates that the printer has encountered an error condition. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: head2 this pin is for extension fdd b; its function is the same as that of the head pin. od 12 extension 2fdd mode: head2 this pin is for extension fdd a and b; its function is the same as that of the head pin. slin 22 od 12 printer mode: slin output line for detection of printer selection. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: step2 this pin is for extension fdd b; its function is the same as that of the step pin. od 12 extension 2fdd mode: step2 this pin is for extension fdd a and b; its function is the same as that of the step pin . init 21 od 12 printer mode: init output line for the printer initialization. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: dir2 this pin is for extension fdd b; its function is the same as that of the dir pin. od 12 extension 2fdd mode: dir2 this pin is for extension fdd a and b; its function is the same as that of the dir pin.
w83877tf/w83877tg publication release date: may 2006 -11- revision 0.7 multi-mode parallel port, continued symbol pin i/o function a fd 20 od12 printer mode: a fd an active low output from this pi n causes the printer to auto feed a line after a line is printed. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: rwc2 this pin is for extension fdd b; its function is the same as that of the rwc pin. od 12 extension 2fdd mode: rwc2 this pin is for extension fdd a and b; its function is the same as that of the rwc pin. stb 19 od 12 printer mode: stb an active low output is used to latch the parallel data into the printer. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. - - extension fdd mode: nc pin extension 2fdd mode: nc pin pd0 9 i/o 24t printer mode: pd0 parallel port data bus bit 0. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. in t extension fdd mode: index2 this pin is for extension fdd b; the function of this pin is the same as that of the index pin. this pin is pulled high internally. in t extension 2fdd mode: index2 this pin is for extension fdd a and b; this function of this pin is the same as index pin. this pin is pulled high internally. pd1 10 i/o24t printer mode: pd1 parallel port data bus bit 1. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. int extension fdd mode: trak02 this pin is for extension fdd b; the function of this pin is the same as that of the trak0 pin. this pin is pulled high internally. int extension. 2fdd mode: trak02 this pin is for extension fdd a and b; this function of this pin is the same as trak0 pin. this pin is pulled high internally.
w83877tf/w83877tg -12 - multi-mode parallel port, continued symbol pin i/o function pd2 11 i/o24t printer mode: pd2 parallel port data bus bit 2. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. in t extension fdd mode: wp2 this pin is for extension fdd b; the function of this pin is the same as that of the wp pin. this pin is pulled high internally. in t extension. 2fdd mode: wp2 this pin is for extension fdd a and b; this function of this pin is the same as that of the wp pin. this pin is pulled high internally. pd3 12 i/o 24t printer mode: pd3 parallel port data bus bit 3. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. in t extension fdd mode: rdata2 motor on b for extension fdd b; the function of this pin is the same as that of the rdata pin. this pin is pulled high internally. in t extension 2fdd mode: rdata2 this pin is for extension fdd a and b; this function of this pin is the same as that of the rdata pin. this pin is pulled high internally. pd4 13 i/o24t printer mode: pd4 parallel port data bus bit 4. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. int extension fdd mode: dskchg2 drive select b for extension fdd b; the function of this pin is the same as that of dskchg pin. this pin is pulled high internally. int extension 2fdd mode: dskchg2 this pin is for extension fdd a and b; this function of this pin is the same as that of the dskchg pin. this pin is pulled high internally. pd5 14 i/o24t i/o24t i/o24t printer mode: pd5 parallel port data bus bit 5. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. extension fdd mode: this pin is a tri-state output. extension 2fdd mode: this pin is a tri-state output.
w83877tf/w83877tg publication release date: may 2006 -13- revision 0.7 multi-mode parallel port, continued symbol pin i/o function pd6 16 i/o 24t printer mode: pd6 parallel port data bus bit 6. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. - extension fdd mode: nc pin od 24 extension. 2fdd mode: moa2 this pin is for extension fdd a; its function is the same as that of the moa pin. pd7 17 i/o 24t printer mode: pd7 parallel port data bus bit 7. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. - extension fdd mode: nc pin od 24 extension 2fdd mode: dsa2 this pin is for extension fdd a; its function is the same as that of the dsa pin. 4.4 fdc interface symbol pin i/o function we 85 od 24 write enable. an open drain output. dir 89 od 24 direction of the head step motor. an open drain output. logic 1 = outward motion logic 0 = inward motion head 88 od 24 head select. this open drain output determines which disk drive head is active. logic 1 = side 0 logic 0 = side 1 rwc 87 od 24 reduced write current. this signal can be used on two-speed disk drives to select the transfer rate. an open drain output. logic 0 = 250 kb/s logic 1 = 500 kb/s when bit 5 of cr9 (en3mode) is set to high, the three-mode fdd function is enabled, and the pin will have a different definition. refer to the en3mode bit in cr9. wd 86 od 24 write data. this logic low open drain writes precompensation serial data to the selected fdd. an open drain output. step 82 od 24 step output pulses. this active low open drain output produces a pulse to move the head to another track.
w83877tf/w83877tg -14 - fdc interface, continued symbol pin i/o function index 81 in cs this schmitt input from the disk drive is active low when the head is positioned over the beginning of a track marked by an index hole. this input pin is pulled up internally by an approximately 1k ohm resistor. the resistor can be disabled by bit 4 of cr6 (fipurdwn). trak0 78 in cs track 0. this schmitt input from the disk drive is active low when the head is positioned over the outermost track. this input pin is pulled up internally by an approximately 1k ohm resistor. the resistor can be disabled by bit 4 of cr6 (fipurdwn). wp 77 in cs write protected. this active low schmitt input from the disk drive indicates that the diskette is write-protected. this input pin is pulled up internally by an approximately 1k ohm resistor. the resistor can be disabled by bit 4 of cr6 (fipurdwn). rdata 74 in cs the read data input signal from the fdd. this input pin is pulled up internally by an approximately 1k ohm resistor. the resistor can be disabled by bit 4 of cr6 (fipurdwn). dskchg 76 in cs diskette change. this signal is active low at power on and whenever the diskette is removed. this input pin is pulled up internally by an approximately 1k ohm resistor. the resistor can be disabled by bit 4 of cr6 (fipurdwn). moa 79 od 24 motor a on. when set to 0, this pin enables disk drive 0. this is an open drain output. mob 80 od 24 motor b on. when set to 0, this pin enables disk drive 1. this is an open drain output. dsa 83 od 24 drive select a. when set to 0, this pin enables disk drive a. this is an open drain output. dsb 84 od 24 drive select b. when set to 0, this pin enables disk drive b. this is an open drain output. vdd 15, 56 +5 power supply for the digital circuitry. gnd 25, 40 65, 90 ground.
w83877tf/w83877tg publication release date: may 2006 -15- revision 0.7 5. fdc functional description 5.1 w83877tf/tg fdc the floppy disk controller of w83877tf/tg integrates all of the logic required for floppy disk control. the fdc implements a pc/at or ps/2 solution. a ll programmable options default to compatible values. the fifo provides better system perform ance in multi-master systems. the digital data separator supports up to data rate 1 m bits/sec. (2 m bits/sec for fast tape drive) the fdc includes the following blocks: at interface, precompensation, data rate selection, digital data separator, fifo, and fdc core. 5.1.1 at interface the interface consists of the standard asynchronous signals: rd , wr , a0-a3, irq, dma control, and a data bus. the address lines select between the configuration registers, the fifo and control/status registers. this interface can be switched between pc/at, model 30, or ps/2 normal modes. the ps/2 register sets are a super set of the registers found in a pc/at. 5.1.2 fifo (data) the fifo is 16 bytes in size and has progra mmable threshold values. all command parameter information and disk data transfers go through the fi fo. data transfers are governed by the rqm and dio bits in the main status register. the fifo defaults to disabled mode after any form of reset. this maintains pc/at hardware compatibility. the default values can be c hanged through the configure command. the advantage of the fifo is that it allows t he system a larger dma latency wit hout causing disk errors. the following tables give several examples of the delays with a fifo. the data are based upon the following formula: threshold fifo threshold maximum delay to servicing at 500k bps data rate 1 byte 1 fifo threshold maximum delay to servicing at 1m bps data rate 1 byte 1
w83877tf/w83877tg -16 - at the start of a command the fifo is always disabled and command parameters must be sent based upon the rqm and dio bit settings in the main st atus register. when the fdc enters the command execution phase, it clears the fifo of any data to ensure that invalid data are not transferred. an overrun and underrun will terminate the current command and the data transfer. disk writes will complete the current sector by generating a 00 pattern and valid crc. reads require the host to remove the remaining data so that the result phase may be entered. dma transfers are enabled with the specify command and are initiated by the fdc by activating the drq pin during a data transfer command. the fifo is enabled directly by asserting dack and addresses need not be valid. note that if the dma controller is programmed to function in verify mode a pseudo read is performed by the fdc based only on dack . this mode is only available when the fdc has been configured into byte mode (fifo disabled) and is programm ed to do a read. with the fifo enabled the above operation is performed by using the new verify command. no dma operation is needed. 5.1.3 data separator the function of the data separator is to lock ont o the incoming serial read data. when a lock is achieved the serial front end logic of the chip is provided with a clock which is synchronized to the read data. the synchronized clock, called the data window, is used to internally sample the serial data portion of the bit cell, and the alternate stat e samples the clock portion. serial to parallel conversion logic separates the r ead data into clock and data bytes. the digital data separator (dds) has three parts: control logic, error adjustment, and speed tracking. the dds circuit cycles once every 12 clock cycles ideally. any data pulse input will be synchronized and then adjusted by immediate error adjustmen t. the control logic will generate rdd and rwd for every pulse input. during any cycle where no data pulse is present, the dds cycles are based on speed. a digital integrator is used to keep tra ck of the speed changes in the input data stream. 5.1.4 write precompensation the write precompensation logic is used to minimize bit shifts in the rddata stream from the disk drive. shifting of bits is a known phenomenon in magnetic media and is dependent on the disk media and the floppy drive. the fdc monitors the bit stream that is being s ent to the drive. the data patterns that require precompensation are well known. depending upon the pattern , the bit is shifted either early or late relative to the surrounding bits. 5.1.5 perpendicular recording mode the fdc is also capable of interfacing directly to perpendicular recording floppy drives. perpendicular recording differs from the traditional longitudinal method in that the magnetic bits are oriented vertically. this scheme packs more data bits into the same area. fdcs with perpendicular recording drives can read standard 3.5" floppy disks and can read and write perpendicular media. some manufacturers offe r drives that can read and write standard and perpendicular media in a perpendicular media drive. a single command puts the fdc into perpendicular mode. all other commands operate as they normally do. the perpendicular mode requires a 1 mbps data rate for the fdc. at this data rate the fifo eases the host interface bottleneck due to t he speed of data transfer to or from the disk.
w83877tf/w83877tg publication release date: may 2006 -17- revision 0.7 5.1.6 tape drive the w83877tf/tg supports standard tape drives (1 mbps, 500 kbps, 250 kbps) and new fast tape drive (2m bps). 5.1.7 fdc core the w83877tf/tg fdc is capable of performing tw enty commands. each command is initiated by a multi-byte transfer from the microprocessor. the re sult can also be a multi-byte transfer back to the microprocessor. each command consists of three phases: command, execution, and result. command the microprocessor issues all required information to the controller to perform a specific operation. execution the controller performs the specified operation. result after the operation is completed, status informat ion and other housekeeping information is provided to the microprocessor. 5.1.8 fdc commands command symbol descriptions: c: cylinder number 0 - 256 d: data pattern dir: step direction dir = 0, step out dir = 1, step in ds0: disk drive select 0 ds1: disk drive select 1 dtl: data length ec: enable count eot: end of track efifo: enable fifo eis: enable implied seek eot: end of track fifothr: fifo threshold gap: gap length selection gpl: gap length h: head number hds: head number select hlt: head load time hut: head unload time lock: lock efifo, fifothr, ptrtrk bi ts prevent affected by software reset mfm: mfm or fm mode
w83877tf/w83877tg -18 - mt: multitrack n: the number of data bytes written in a sector ncn: new cylinder number nd: non-dma mode ow: overwritten pcn: present cylinder number poll: polling disable pretrk: precompensation start track number r: record rcn: relative cylinder number r/w: read/write sc: sector/per cylinder sk: skip deleted data address mark srt: step rate time st0: status register 0 st1: status register 1 st2: status register 2 st3: status register 3 wg: write gate alters timing of we 5.1.9 fdc instruction sets (1) read data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm sk 0 0 1 1 0 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
w83877tf/w83877tg publication release date: may 2006 -19- revision 0.7 (2) read deleted data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm sk 0 1 1 0 0 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
w83877tf/w83877tg -20 - (3) read a track phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 mfm 0 0 0 0 1 0 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system; fdd reads contents of all cylinders from index hole to eot result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution (4) read id phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 mfm 0 0 1 0 1 0 command codes w 0 0 0 0 0 hds ds1 ds0 execution the first correct id information on the cylinder is stored in data register result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ disk status after the command has been completed
w83877tf/w83877tg publication release date: may 2006 -21- revision 0.7 (5) verify phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm sk 1 0 1 1 0 command codes w ec 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- -------------------- dtl/sc ------------------- execution no data transfer takes place result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution (6) version phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 1 0 0 0 0 command codes result w 1 0 0 1 0 0 0 0 enhanced controller
w83877tf/w83877tg -22 - (7) write data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm 0 0 0 1 0 1 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution (8) write deleted data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm 0 0 1 0 0 1 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w w -------------------- eot ----------------------- -------------------- gpl ----------------------- -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
w83877tf/w83877tg publication release date: may 2006 -23- revision 0.7 (9) format a track phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 mfm 0 0 1 1 0 1 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- n ------------------------ --------------------- sc ----------------------- bytes/sector sectors/cylinder w w --------------------- gpl --------------------- ---------------------- d ------------------------ gap 3 filler byte execution for each sector repeat: w w w w ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ input sector parameters result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------- undefined ------------------- ---------------- undefined ------------------- ---------------- undefined ------------------- ---------------- undefined ------------------- (10) recalibrate phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 0 1 1 1 command codes w 0 0 0 0 0 0 ds1 ds0 execution head retracted to track 0 interrupt (11) sense interrupt status phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 1 0 0 0 command codes result r r ---------------- st0 ------------------------- ---------------- pcn ------------------------- status information at the end of each seek operation
w83877tf/w83877tg -24 - (12) specify phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 0 0 1 1 command codes w w | ---------srt ----------- | --------- hut ---------- | |------------ hlt -----------------------------------| nd (13) seek phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 1 1 1 1 command codes w 0 0 0 0 0 hds ds1 ds0 w -------------------- ncn ----------------------- execution r head positioned over proper cylinder on diskette (14) configure phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 1 0 0 1 1 configure information w 0 0 0 0 0 0 0 0 w w 0 eis efifo poll | ------ fifothr ----| | --------------------pretrk ---------------------- | execution internal registers written (15) relative seek phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 1 dir 0 0 1 1 1 1 command codes w 0 0 0 0 0 hds ds1 ds0 w | -------------------- rcn ---------------------------- |
w83877tf/w83877tg publication release date: may 2006 -25- revision 0.7 (16) dumpreg phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 1 1 1 0 registers placed in fifo result r r r r r r r r r r -------------------- pcn-drive 0----------------- -------------------- pcn-drive 1 ---------------- -------------------- pcn-drive 2----------------- -------------------- pcn-drive 3 ---------------- -------- srt ----------- | -------- hut ---------- ------------ hlt -------------------------------------| nd -------------------- sc/eot -------------------- lock 0 d3 d2 d1 d0 gap wg 0 eis efifo poll| --- fifothr ---- | --------------------pretrk --------------------- (17) perpendicular mode phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 1 0 0 1 0 command code w ow 0 d3 d2 d1 d0 gap wg (18) lock phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w lock 0 0 1 0 1 0 0 command code result r 0 0 0 lock 0 0 0 0 (19) sense drive status phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 0 1 0 0 command code w 0 0 0 0 0 hds ds1 ds0 result r ---------------- st3 ------------------------- status information about disk drive (20) invalid phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w ------------- invalid codes ----------------- invalid codes (no operation - fdc goes into standby state) result r -------------------- st0 ---------------------- st0 = 80h
w83877tf/w83877tg -26 - 5.2 register descriptions there are several status, data, and control regi sters in w83877tf/tg. these registers are defined below: address register offset read write base address + 0 base address + 1 base address + 2 base address + 3 sa register sb register td register do register td register base address + 4 ms register dr register base address + 5 dt (fifo) register dt (fifo) register base address + 7 di register cc register 5.2.1 status register a (sa register) (read base address + 0) this register is used to monitor several disk interface pins in ps/2 and model 30 modes. in ps/2 mode, the bit definitions for this register are as follows: 1 2 3 4 5 6 7 0 wp index head trak0 step drv2 init pending dir init pending (bit 7): this bit indicates the value of the floppy disk interrupt output. drv2 (bit 6): 0 a second drive has been installed 1 a second drive has not been installed step (bit 5): this bit indicates the complement of step output. trak0 (bit 4): this bit indicates the value of trak0 input. head (bit 3): this bit indicates the complement of head output. 0 side 0 1 side 1
w83877tf/w83877tg publication release date: may 2006 -27- revision 0.7 index (bit 2): this bit indicates the value of index output. wp (bit 1): 0 disk is write-protected 1 disk is not write-protected dir (bit 0) this bit indicates the direction of head movement. 0 outward direction 1 inward direction in ps/2 model 30 mode, the bit definitions for this register are as follows: 1 2 3 4 5 6 7 0 wp index head trak0 step f/f drq init pending dir init pending (bit 7): this bit indicates the value of the floppy disk interrupt output. drq (bit 6): this bit indicates the value of drq output pin. step f/f (bit 5): this bit indicates the complement of latched step output. trak0 (bit 4): this bit indicates the complement of trak0 input. head (bit 3): this bit indicates the value of head output. 0 side 1 1 side 0
w83877tf/w83877tg -28 - index (bit 2): this bit indicates the complement of index output. wp (bit 1): 0 disk is not write-protected 1 disk is write-protected dir (bit 0) this bit indicates the direction of head movement. 0 inward direction 1 outward direction 5.2.2 status register b (sb register) (read base address + 1) this register is used to monitor several disk interface pins in ps/2 and model 30 modes. in ps/2 mode, the bit definitions for this register are as follows: 1 2 3 4 5 6 7 0 mot en a we rdata toggle wdata toggle drive sel0 mot en b 1 1 drive sel0 (bit 5): this bit indicates the status of do register bit 0 (drive select bit 0). wdata toggle (bit 4): this bit changes state at every rising edge of the wd output pin. rdata toggle (bit 3): this bit changes state at every rising edge of the rdata output pin. we (bit 2): this bit indicates the complement of the we output pin. mot en b (bit 1) this bit indicates the complement of the mob output pin. mot en a (bit 0) this bit indicates the complement of the moa output pin. in ps/2 model 30 mode, the bit definitions for this register are as follows:
w83877tf/w83877tg publication release date: may 2006 -29- revision 0.7 1 2 3 4 5 6 7 0 dsc dsd we f/f rdata f/f dsa dsb drv2 wd f/f drv2 (bit 7): 0 a second drive has been installed 1 a second drive has not been installed dsb (bit 6): this bit indicates the status of dsb output pin. dsa (bit 5): this bit indicates the status of dsa output pin. wd f/f(bit 4): this bit indicates the complement of the latched wd output pin at every rising edge of the wd output pin. rdata f/f(bit 3): this bit indicates the complement of the latched rdata output pin . we f/f (bit 2): this bit indicates the complement of latched we output pin. dsd (bit 1): 0 drive d has been selected 1 drive d has not been selected dsc (bit 0): 0 drive c has been selected 1 drive c has not been selected
w83877tf/w83877tg -30 - 5.2.3 digital output register (do register) (write base address + 2) the digital output register is a write-only regist er controlling drive motors, drive selection, drq/irq enable, and fdc resetting. all the bits in this register are cleared by the mr pin. the bit definitions are as follows: 76 54 3 2 1-0 drive select: 00 select drive a 01 select drive b 10 select drive c 11 select drive d floppy disk controller reset active low resets fdc dma and int enable active high enable drq/irq motor enable a. motor a on when active high motor enable b. motor b on when active high motor enable c. motor c on when active high motor enable d. motor d on when active high 5.2.4 tape drive register (td register) (read base address + 3) this register is used to assign a particular driv e number to the tape drive support mode of the data separator. this register also holds the media id, drive type, and floppy boot dr ive information of the floppy disk drive. in normal floppy mode, this regist er includes only bit 0 and 1. the bit definitions are as follows: 1 2 3 4 5 6 7 0 tape sel 0 tape sel 1 xx xx x x if three mode fdd function is enabled (en3mode = 1 in cr9), the bit definitions are as follows: 1 2 3 4 5 6 7 0 floppy boot drive 0 floppy boot drive 1 drive type id0 drive type id1 media id0 media id1 tape sel 0 tape sel 1 media id1 media id0 (bit 7, 6): these two bits are read only. these two bi ts reflect the value of cr8 bit 3, 2. drive type id1 drive type id0 (bit 5, 4): these two bits reflect two of the bits of cr7. wh ich two bits are reflected depends on the last drive selected in the do register.
w83877tf/w83877tg publication release date: may 2006 -31- revision 0.7 floppy boot drive 1, 0 (bit 3, 2): these two bits reflect the value of cr8 bit 1, 0. tape sel 1, tape sel 0 (bit 1, 0): these two bits assign a logical drive number to the t ape drive. drive 0 is not available as a tape drive and is reserved as the floppy disk boot drive. tape sel 1 tape sel 0 drive selected 0 0 none 0 1 1 1 0 2 1 1 3 5.2.5 main status register (ms register) (read base address + 4) the main status register is used to control the flow of data between the microprocessor and the controller. the bit definitions fo r this register are as follows: fdd 0 busy, (d0b = 1), fdd number 0 is in the seek mode. fdd 1 busy, (d1b = 1), fdd number 1 is in the seek mode. fdc busy, (cb). a read or write command is in the process when cb = high. non-dma mode, the fdc is in the non-dma mode, this bit is set only during the execution phase in non-dma mode. transition to low state indicates execution phase has ended. data input/output, (dio). if dio= high then transfer is from data register to the processor. if dio = low then transfer is from processor to data register. request for master (rqm). a high on this bit indicates data register is ready to send or receive data to or from the processor. 7 6 5 4 321 0 fdd 2 busy, (d2b = 1), fdd number 2 is in the seek mode. fdd 3 busy, (d3b = 1), fdd number 3 is in the seek mode. 5.2.6 data rate register (dr register) (write base address + 4) the data rate register is used to set the transfe r rate and write precompensation. the data rate of the fdc is programmed by the cc register for pc-at and ps/2 model 30 and ps/2 mode, and not by the dr register. the real data rate is deter mined by the most recent write to either of the dr register or cc register. 1 2 3 4 5 6 7 0 drate0 drate1 precomp0 precomp1 precomp2 power down s/w reset 0
w83877tf/w83877tg -32 - s/w reset (bit 7): this bit is the software reset bit. power-down (bit 6): 0 fdc in normal mode 1 fdc in power-down mode precomp2 precomp1 pr ecomp0 (bit 4, 3, 2): these three bits select the value of write precompensation. the following tables show the precompensation values for the combination of these bits. precom precompensation delay 2 1 0 250k - 1mbps 2 mbps tape drive 0 0 0 default delays default delays 0 0 1 41.67 ns 20.8ns 0 1 0 83.34 ns 41.17ns 0 1 1 125.00 ns 62.5ns 1 0 0 166.67 ns 83.3ns 1 0 1 208.33 ns 104.2ns 1 1 0 250.00 ns 125.00ns 1 1 1 0.00 ns (disabled) 0.00ns (disabled) data rate default precompensation delays 250 kb/s 125 ns 300 kb/s 125 ns 500 kb/s 125 ns 1 mb/s 41.67 ns 2 mb/s 20.8 ns drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc and reduced write current control. 00 500 kb/s (mfm), 250 kb/s (fm), rwc = 1. 01 300 kb/s (mfm), 150 kb/s (fm), rwc = 0. 10 250 kb/s (mfm), 125 kb/s (fm), rwc = 0. 11 1 mb/s (mfm), illegal (fm), rwc = 1. the 2mb/s data rate for tape drive is only suppor ted by setting 01 to drate1 and drate0 bits, as well as setting 10 to drta1 and drta0 bits which are two of the configuration cr2d. please refer to the function of cr2d and the data rate table for individual data rates setting.
w83877tf/w83877tg publication release date: may 2006 -33- revision 0.7 5.2.7 fifo register (r/w base address + 5) the data register consists of four status regist ers in a stack with only one register presented to the data bus at a time. this register stores data, commands, and parameters and provides diskette-drive status information. data bytes are passed through t he data register to program or obtain results after a command. in the w83877tf/tg, this register defaults to fifo disabled mode after reset. the fifo can change its value and enable its operation through the configure command. status register 0 (st0) 7-6 5 4 3 2 1-0 us1, us0 drive select: 00 drive a selected 01 drive b selected 10 drive c selected 11 drive d selected hd head address: 1 head selected 0 head selected nr not ready: 1 drive is not ready 0 drive is ready ec equipment check: 1 when a fault signal is received from the fdd or the track 0 signal fails to occur after 77 step pulses 0 no error se seek end: 1 seek end 0 seek error ic interrupt code: 00 normal termination of command 01 abnormal termination of command 10 invalid command issue 11 abnormal termination because the ready signal from fdd changed state during command executi o status register 1 (st1) missing address mark. 1 when the fdc cannot detect the data address mark or the data address mark has been deleted. nw (not writable). 1 if a write protect signal is detected from the diskette drive during execution of write data. nd (no data). 1 if specified sector cannot be found during execution of a read, write or verifly data. not used. this bit is always 0. or (over rum). 1 if the fdc is not serviced by the host system within a certain time interval during data transfer. de (data error).1 when the fdc detects a crc error in either the id field or the data field. not used. this bit is always 0. en (end of track). 1 when the fdc tries to access a sector beyond the final sector of a cylinder. 0 1 2 3 4 5 6 7
w83877tf/w83877tg -34 - status register 2 (st2) 1 2 3 4 5 6 70 bc (bad cylinder) md (missing address mark in data field). 1 if the fdc cannot find a data address mark (or the address mark has been deleted) when reading data from the media 0 no error 1 bad cylinder 0 no error sn (scan not satisfied) 1 during execution of the scan command 0 no error sh (scan equal hit) 1 during execution of the scan command, if the equal condition is satisfied 0 no error wc (wrong cylinder) 1 indicates wrong cylinder dd (data error in the data field) 1 if the fdc detects a crc error in the data field 0 no error cm (control mark) 1 during execution of the read data or scan command 0 no error not used. this bit is always 0 status register 3 (st3) 1 2 3 4 5 6 7 0 us0 unit select 0 us1 unit select 1 hd head address ts two-side to track 0 ry ready wp write protected ft fault 5.2.8 digital input register (di register) (read base address + 7) the digital input register is an 8-bit read-only regi ster used for diagnostic purposes. in a pc/xt or at only bit 7 is checked by the bios. when the regi ster is read, bit 7 shows the complement of dskchg , while other bits of the data bus remain in tri-state. bit definitions are as follows: x x x x x x x x 0 1 2 3 4 5 6 7 reserved for the hard disk controller during a read of this register, these bits are in tri-sta t dskchg
w83877tf/w83877tg publication release date: may 2006 -35- revision 0.7 in the ps/2 mode, the bit definitions are as follows: 1 2 3 4 5 6 7 0 high dens drate0 drate1 dskchg 11 1 1 dskchg (bit 7): this bit indicates the complement of the dskchg input. bit 6-3: these bits are always a logic 1 during a read. drate1 drate0 (bit 2, 1): these two bits select the data rate of the fdc. re fer to the dr register bits 1 and 0 for the settings corresponding to the individual data rates. high dens (bit 0): 0 500 kb/s or 1 mb/s data rate (high density fdd) 1 250 kb/s or 300 kb/s data rate in the ps/2 model 30 mode, the bit definitions are as follows: 1 2 3 4 5 6 7 0 drate0 drate1 dskchg noprec dmaen 00 0 dskchg (bit 7): this bit indicates the status of dskchg input. bit 6-4: these bits are always a logic 1 during a read. dmaen (bit 3): this bit indicates the value of do register bit 3. noprec (bit 2): this bit indicates the value of cc register noprec bit. drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc.
w83877tf/w83877tg -36 - 5.2.9 configuration control register (cc register) (write base address + 7) this register is used to control the data rate. in the pc/at and ps/2 mode, the bit definitions are as follows: xxxx xx drate0 drate1 0 1 2 3 4 5 7 6 x: reserved bit 7-2: reserved. these bits should be set to 0. drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc. in the ps/2 model 30 mode, the bit definitions are as follows: 1 2 3 4 5 6 7 0 drate0 drate1 noprec xx xx x x : reserved bit 7-3: reserved. these bits should be set to 0. noprec (bit 2): this bit indicates no precompensation. it has no function and can be set by software. drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc.
w83877tf/w83877tg publication release date: may 2006 -37- revision 0.7 6. uart port 6.1 universal asynchronous receiver /transmitter (uart a, uart b) the uarts are used to convert parallel data into se rial format on the transmit side and convert serial data to parallel format on the receiver side. the se rial format, in order of transmission and reception, is a start bit, followed by five to eight data bits , a parity bit (if programmed) and one, one and half (five- bit format only) or two stop bits. the uarts are capable of handling divisors of 1 to 65535 and producing a 16x clock for driving the internal transmitte r logic. provisions are also included to use this 16x clock to drive the receiver logic. the uarts also support the midi data rate. furthermore, the uarts also include complete modem control capabilit y and a processor interrupt system that may be software trailed to the computing time required to handle the communication link. the uarts have a fifo mode to reduce the number of interrupts pr esented to the cpu. in each uart, there are 16- byte fifos for both receive and transmit mode. 6.2 register address table 6-1 uart register bit map bit number register address base 0 1 2 3 4 5 6 7 8 bdlab = 0 receiver buffer register (read only) rbr rx data bit 0 rx data bit 1 rx data bit 2 rx data bit 3 rx data bit 4 rx data bit 5 rx data bit 6 rx data bit 7 8 bdlab = 0 transmitter buffer register (write only) tbr tx data bit 0 tx data bit 1 tx data bit 2 tx data bit 3 tx data bit 4 tx data bit 5 tx data bit 6 tx data bit 7 9 bdlab = 0 interrupt control register icr rbr data ready interrupt enable (erdri) tbr empty interrupt enable (etbrei) usr interrupt enable (eusri) hsr interrupt enable (ehsri) 0 0 0 0 a interrupt status register (read only) isr "0" if interrupt pending interrupt status bit (0) interrupt status bit (1) interrupt status bit (2)** 0 0 fifos enabled ** fifos enabled ** a uart fifo control register (write only) ufr fifo enable rcvr fifo reset xmit fifo reset dma mode select reserved reversed rx interrupt active level (lsb) rx interrupt active level (msb) b uart control register ucr data length select bit 0 (dls0) data length select bit 1 (dls1) multiple stop bits enable (msbe) parity bit enable (pbe) even parity enable (epe) parity bit fixed enable pbfe) set silence enable (sse) baud rate divisor latch access bit (bdlab) c handshake control register hcr data terminal ready (dtr) request to send (rts) loopback ri input irq enable internal loopback enable 0 0 0
w83877tf/w83877tg -38 - register address, continued. bit number register address base 0 1 2 3 4 5 6 7 d uart status register usr rbr data ready (rdr) overrun error (oer) parity bit error (pber) no stop bit error (nser) silent byte detected (sbd) tbr empty (tbre) tsr empty (tsre) rx fifo error indication (rfei) ** e handshake status register hsr cts toggling (tcts) dsr toggling (tdsr) ri falling edge (feri) dcd toggling (tdcd) clear to send (cts) data set ready (dsr) ring indicator (ri) data carrier detect (dcd) f user defined register udr bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 8 bdlab = 1 baudrate divisor latch low bll bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 9 bdlab = 1 baudrate divisor latch high bhl bit 8 bit 9 bit 10 bit 11 bit 12 bit 13 bit 14 bit 15 *: bit 0 is the least signifi cant bit. the least si gnificant bit is the first bit se rially transmitted or received. **: these bits are always 0 in 16450 mode. 6.2.1 uart control register (ucr) (read/write) the uart control register controls and defines the pr otocol for asynchronous data communications, including data length, stop bit, parity, and baud rate selection. 1 2 3 4 5 6 7 0 data length select bit 0 (dls0) data length select bit 1(dls1) multiple stop bits enable (msbe) parity bit enable (pbe) even parity enable (epe) parity bit fixed enable (pbfe) set silence enable (sse) baudrate divisor latch access bit (bdlab ) bit 7: bdlab. when this bit is set to a logical 1, designers can access the divisor (in 16-bit binary format) from the divisor latches of the baud ra te generator during a read or write operation. when this bit is reset, the receiver buffer r egister, the transmitter buffer register, or the interrupt control register can be accessed. bit 6: sse. a logical 1 forces the serial output (sout) to a silent state (a logical 0). only sout is affected by this bit; the transmitter is not affected. bit 5: pbfe. when pbe and pbfe of ucr are both set to a logical 1, (1) if epe is a logical 1, the parity bit is fi xed as a logical 0 to transmit and check. (2) if epe is a logical 0, the parity bit is fixed as a logical 1 to transmit and check.
w83877tf/w83877tg publication release date: may 2006 -39- revision 0.7 bit 4: epe. this bit describes the number of logic 1's in the data word bits and parity bit only when bit 3 is programmed. when this bit is set, an even num ber of logic 1's are sent or checked. when the bit is reset, an odd number of logic 1's are sent or checked. bit 3: pbe. when this bit is set, the position between the last data bit and the stop bit of the sout will be stuffed with the parity bit at the transmitter. for the receiver, the parity bit in the same position as the transmitter will be detected. bit 2: msbe. this bit defines the number of stop bits in each serial character that is transmitted or received. (1) if msbe is set to a logical 0, one stop bit is sent and checked. (2) if msbe is set to a logical 1, and data length is 5 bits, one and a half stop bits are sent and checked. (3) if msbe is set to a logical 1, and data length is 6, 7, or 8 bits, two stop bits are sent and checked. bits 0 and 1: dls0, dls1. these two bits define the number of data bits that are sent or checked in each serial character. table 6-2 word length definition dls1 dls0 data length 0 0 5 bits 0 1 6 bits 1 0 7 bits 1 1 8 bits 6.2.2 uart status register (usr) (read/write) this 8-bit register provides information about t he status of the data transfer during communication. 1 2 3 4 5 6 70 rbr data ready (rdr) overrun error (oer) parity bit error (pber) no stop bit error (nser) silent byte detected (sbd) transmitter buffer register empty (tbre ) transmitter shift register empty (tsre) rx fifo error indication (rfei) bit 7: rfei. in 16450 mode, this bit is always set to a logic 0. in 16550 mode, this bit is set to a logic 1 when there is at least one parity bit error, no stop bi t error or silent byte detected in the fifo. in 16550 mode, this bit is cleared by reading from the usr if there are no remaining errors left in the fifo.
w83877tf/w83877tg -40 - bit 6: tsre. in 16450 mode, when tbr and tsr are both em pty, this bit will be set to a logical 1. in 16550 mode, if the transmit fifo and tsr are both em pty, it will be set to a logical 1. other than these two cases, this bit will be reset to a logical 0. bit 5: tbre. in 16450 mode, when a data character is transferred from tbr to tsr, this bit will be set to a logical 1. if etrei of icr is a logical 1, an interrupt will be generated to notify the cpu to write the next data. in 16550 mode, this bit will be set to a logical 1 when the transmit fifo is empty. it will be reset to a logical 0 when the cpu writes data into tbr or fifo. bit 4: sbd. this bit is set to a logical 1 to indicate that received data are kept in silent state for a full word time, including start bit, data bits, parity bit, and stop bits. in 16550 mode, it indicates the same condition for the data on top of the fifo. w hen the cpu reads usr, it will clear this bit to a logical 0. bit 3: nser. this bit is set to a logical 1 to indicate that the received data have no stop bit. in 16550 mode, it indicates the same condition for t he data on top of the fifo. when the cpu reads usr, it will clear this bit to a logical 0. bit 2: pber. this bit is set to a logical 1 to indica te that the parity bit of received data is wrong. in 16550 mode, it indicates the same condition fo r the data on top of the fifo. when the cpu reads usr, it will clear this bit to a logical 0. bit 1: oer. this bit is set to a logical 1 to indicate received data have been overwritten by the next received data before they were read by the cpu. in 16550 mode, it indicates the same condition instead of fifo full. when the cpu reads usr, it will clear this bit to a logical 0. bit 0: rdr. this bit is set to a logical 1 to indi cate received data are ready to be read by the cpu in the rbr or fifo. after no data are left in the rbr or fifo, the bit will be reset to a logical 0. 6.2.3 handshake control register (hcr) (read/write) this register controls the pins of the uart used for handshaking peripherals such as modem, and controls the diagnostic mode of the uart. 0 0 0 0 1 2 3 4 5 6 7 data terminal ready (dtr ) request to send (rts) loopback ri input irq enable internal loopback enable bit 4: when this bit is set to a logical 1, the uart enters diagnostic mode by an internal loopback, as follows: (1) sout is forced to a logical 1, and sin is isolated from the communication link instead of the tsr. (2) modem output pins are set to their inactive state. (3) modem input pins are isolated from the communication link and connect internally as dtr (bit 0 of hcr) dsr , rts ( bit 1 of hcr) cts , loopback ri input ( bit 2 of hcr) ri and irq enable ( bit 3 of hcr) dcd . aside from the above connections, the uart operates normally. this method allows the cpu to test the uart in a convenient way.
w83877tf/w83877tg publication release date: may 2006 -41- revision 0.7 bit 3: the uart interrupt output is enabled by setting this bit to a logic 1. in the diagnostic mode this bit is internally connected to the modem control input dcd . bit 2: this bit is used only in the diagnostic mode. in the diagnostic mode this bit is internally connected to the modem control input ri . bit 1: this bit controls the rts output. the value of this bit is inverted and output to rts . bit 0: this bit controls the dtr output. the value of this bit is inverted and output to dtr . 6.2.4 handshake status register (hsr) (read/write) this register reflects the current state of four input pins for handshake peripherals such as a modem and records changes on these pins. 1 2 3 4 5 6 70 ri falling edge (feri) clear to send (cts) data set ready (dsr) ring indicator (ri) data carrier detect (dcd) cts toggling (tcts) dsr toggling (tdsr) dcd toggling (tdcd) bit 7: this bit is the opposite of the dcd input. this bit is equivalent to bit 3 of hcr in loopback mode. bit 6: this bit is the opposite of the ri input. this bit is equivalent to bit 2 of hcr in loopback mode. bit 5: this bit is the opposite of the dsr input. this bit is equivalent to bit 0 of hcr in loopback mode. bit 4: this bit is the opposite of the cts input. this bit is equivalent to bit 1 of hcr in loopback mode. bit 3: tdcd. this bit indicates that the dcd pin has changed state after hsr was read by the cpu. bit 2: feri. this bit indicates that the ri pin has changed from low to high state after hsr was read by the cpu. bit 1: tdsr. this bit indicates that the dsr pin has changed state after hsr was read by the cpu. bit 0: tcts. this bit indicates that the cts pin has changed state after hsr was read by the cpu.
w83877tf/w83877tg -42 - 6.2.5 uart fifo control register (ufr) (write only) this register is used to control the fifo functions of the uart. 1 2 3 4 5 6 70 fifo enable receiver fifo reset transmitter fifo reset dma mode select reserved reserved rx interrupt active level (lsb) rx interrupt active level (msb) bit 6, 7: these two bits are used to set the active level for the receiver fifo interrupt. for example, if the interrupt active level is set as 4 bytes, once there are more than 4 data characters in the receiver fifo, the interrupt will be activated to notify the cpu to read the data from the fifo. table 6-3 fifo trigger level bit 7 bit 6 rx fifo interrupt active level (bytes) 0 0 01 0 1 04 1 0 08 1 1 14 bit 4, 5: reserved bit 3: when this bit is programmed to logic 1, the dma mode will change from mode 0 to mode 1 if ufr bit 0 = 1. bit 2: setting this bit to a logical 1 resets the tx fifo counter logic to initial state. this bit will clear to a logical 0 by itself after being set to a logical 1. bit 1: setting this bit to a logical 1 resets the rx fifo counter logic to initial state. this bit will clear to a logical 0 by itself after being set to a logical 1. bit 0: this bit enables the 16550 (fifo) mode of the uart. this bit should be set to a logical 1 before other bits of ufr are programmed.
w83877tf/w83877tg publication release date: may 2006 -43- revision 0.7 6.2.6 interrupt status register (isr) (read only) this register reflects the uart interrupt status, which is encoded by different interrupt sources into 3 bits. 1 2 3 4 5 6 7 0 0 if interrupt pending interrupt status bit 0 interrupt status bit 1 interrupt status bit 2 fifos enabled fifos enabled 00 bit 7, 6: these two bits are set to a logical 1 when ufr bit 0 = 1. bit 5, 4: these two bits are always logic 0. bit 3: in 16450 mode, this bit is 0. in 16550 mode, both bit 3 and 2 are set to a logical 1 when a time- out interrupt is pending. bit 2, 1: these two bits identify the priority leve l of the pending interrupt, as shown in the table below. bit 0: this bit is a logical 1 if there is no interr upt pending. if one of the interrupt sources has occurred, this bit will be set to a logical 0. table 6-4 interrupt control function isr interrupt set and function bit 3 bit 2 bit 1 bit 0 interrupt priority interrupt type interrupt source clear interrupt 0 0 0 1 - - no interrupt pending - 0 1 1 0 first uart receive status 1. oer = 1 2. pber =1 3. nser = 1 4. sbd = 1 read usr 0 1 0 0 second rbr data ready 1. rbr data ready 2. fifo interrupt active level reached 1. read rbr 2. read rbr until fifo data under active level 1 1 0 0 second fifo data timeout data present in rx fifo for 4 characters period of time since last access of rx fifo. read rbr 0 0 1 0 third tbr empty tbr empty 1. write data into tbr 2. read isr (if priority is third) 0 0 0 0 fourth handshake status 1. tcts = 1 2. tdsr = 1 3. feri = 1 4. tdcd = 1 read hsr ** bit 3 of isr is enabled when bi t 0 of ufr is logical 1.
w83877tf/w83877tg -44 - 6.2.7 interrupt control register (icr) (read/write) this 8-bit register allows the five types of contro ller interrupts to activate the interrupt output signal separately. the interrupt system can be totally dis abled by resetting bits 0 through 3 of the interrupt control register (icr). a selected interrupt can be enabled by setting the appropriate bits of this register to a logical 1. 000 1 2 3 4 5 6 7 0 0 rbr data ready interrupt enable (erdri) tbr empty interrupt enable (etbrei) uart receive status interrupt enable (eusri) handshake status interrupt enable (ehsri) bit 7-4: these four bits are always logic 0. bit 3: ehsri. setting this bit to a logical 1 enables the handshake status register interrupt. bit 2: eusri. setting this bit to a logical 1 enables the uart status register interrupt. bit 1: etbrei. setting this bit to a l ogical 1 enables the tbr empty interrupt. bit 0: erdri. setting this bit to a logical 1 enables the rbr data ready interrupt. 6.2.8 programmable baud generator (bll/bhl) (read/write) two 8-bit registers, bll and bhl, compose a programmable baud generator that uses 24 mhz to generate a 1.8461 mhz frequency and divides it by a divisor from 1 to 2 16 -1. the output frequency of the baud generator is the baud rate multiplied by 16, and this is the base frequency for the transmitter and receiver. the table below illustrates the us e of the baud generator with a frequency of 1.8461 mhz. in high-speed uart mode (refer to cr0c bit7 and cr0c bit6), the programmable baud generator directly uses 24 mhz and the same divi sor as the normal speed divisor. in high-speed mode, the data transmission rate can be as high as 1.5m bps.
w83877tf/w83877tg publication release date: may 2006 -45- revision 0.7 6.2.9 user-defined register (udr) (read/write) this is a temporary register that can be accessed and defined by the user. table 6-5 baud rate table baud rate using 24 mhz to generate 1.8461 mhz desired baud rate decimal divisor used to generate 16x clock percent error difference between desired and actual 50 2304 ** 75 1536 ** 110 1047 0.18% 134.5 857 0.099% 150 768 ** 300 384 ** 600 192 ** 1200 96 ** 1800 64 ** 2000 58 0.53% 2400 48 ** 3600 32 ** 4800 24 ** 7200 16 ** 9600 12 ** 19200 6 ** 38400 3 ** 57600 2 ** 115200 1 ** 230400 4 note 1 ** 460800 2 note 1 ** 921600 1 note 1 ** 1.5m 1 note 2 0% note 1: only use in high speed mode, when fasta/fastb bi ts are set (refer to cr19 bit1 and cr19 bit0). note 2: only use in high speed mode, when tura/turb bits are set (refer to cr0c bit7 and bit6). ** the percentage error for all baud rates, exc ept where indicated otherwise, is 0.16%
w83877tf/w83877tg -46 - 7. parallel port 7.1 printer interface logic the parallel port of the w83877tf/tg makes possible t he attachment of various devices that accept eight bits of parallel data at standard ttl leve l. w83877tf/tg supports an ibm xt/at compatible parallel port (spp), bi-directional parallel por t (bpp), enhanced parallel port (epp), extended capabilities parallel port (ecp), extensi on fdd mode (extfdd), and extension 2fdd mode (ext2fdd) on the parallel port. refer to the configurat ion registers for more information on disabling, power-down, and on selecting the mode of operation. table 7-1 shows the pin definitions for different modes of the parallel port. table 7-1-a parallel port connector and pin definition for spp/epp/ecp modes host connector pin number of w83877tf pin attribute spp epp ecp 1 19 o nstb nwrite nstb, hostclk 2-9 9-14,16-17 i/o pd<0:7> pd<0:7> pd<0:7> 10 26 i nack intr nack, periphclk 11 24 i busy nwait busy, periphack 2 12 27 i pe pe peerror, nackreverse 2 13 28 i slct select slct, xflag 14 20 o nafd ndstrb nafd, hostack 2 15 29 i nerr nerror nfault 1 , nperiphrequest 2 16 21 o ninit ninit ninit 1 , nreverserqst 2 17 22 o nslin nastrb nslin 1 , ecpmode 2 notes: n : active low 1. compatible mode 2. high speed mode 3. for more information, refer to the ieee 1284 standard.
w83877tf/w83877tg publication release date: may 2006 -47- revision 0.7 table 7-1-b parallel port connector and pin definition for extfdd and ext2fdd modes host connector pin number of w83877tf pin attribute spp pin attribute ext2fdd pin attribute extfd d 1 19 o nstb --- --- --- --- 2 9 i/o pd0 i index2 i index2 3 10 i/o pd1 i trak02 i 4 11 i/o pd2 i wp2 i 5 12 i/o pd3 i rdat a 2 i rdat a 2 6 13 i/o pd4 i dskchg2 i dskch g 7 14 i/o pd5 --- --- --- --- 8 15 i/o pd6 od mo a 2 --- --- 9 16 i/o pd7 od ds a 2 --- --- 10 26 i nack od dsb2 od 11 24 i busy od mob2 od 12 27 i pe od wd2 od wd2 13 28 i slct od we2 od we2 14 20 o nafd od rwc2 od rwc2 15 29 i nerr od nerr2 od 16 21 o ninit od dir2 od dir2 17 22 o nslin od step2 od
w83877tf/w83877tg -48 - 7.2 enhanced parallel port (epp) table 7-2 printer mode and epp register address a2 a1 a0 register note 0 0 0 data port (r/w) 1 0 0 1 printer status buffer (read) 1 0 1 0 printer control latch (write) 1 0 1 0 printer control swapper (read) 1 0 1 1 epp address port (r/w) 2 1 0 0 epp data port 0 (r/w) 2 1 0 1 epp data port 1 (r/w) 2 1 1 0 epp data port 2 (r/w) 2 1 1 1 epp data port 2 (r/w) 2 notes: 1. these registers are available in all modes. 2. these registers are available only in epp mode. 7.2.1 data swapper the system microprocessor can read the contents of the printer's data latch by reading the data swapper. 7.2.2 printer status buffer the system microprocessor can read the printer stat us by reading the address of the printer status buffer. the bit definitions are as follows: 1 11 2 3 54 6 70 tmout error slct pe bus y ack bit 7: this signal is active during data entry, when t he printer is off-line during printing, when the print head is changing position, or during an error state. when this signal is active, the printer is busy and cannot accept data. bit 6: this bit represents the current state of the printer's ack signal. a 0 means the printer has received a character and is ready to accept anot her. normally, this signal will be active for approximately 5 microseconds before busy stops. bit 5: a 1 means the printer has detected the end of paper. bit 4: a 1 means the printer is selected.
w83877tf/w83877tg publication release date: may 2006 -49- revision 0.7 bit 3: a 0 means the printer has encountered an error condition. bit 1, 2: these two bits are not implemented and ar e logic one during a read of the status register. bit 0: this bit is valid in epp mode only. it indicates that a 10 s time-out has occurred on the epp bus. a logic 0 means that no time-out error has o ccurred; a logic 1 means that a time-out error has been detected. writing a logic 1 to this bit will clear the time-out status bit; writing a logic 0 has no effect. 7.2.3 printer control latch and printer control swapper the system microprocessor can read the contents of the printer cont rol latch by reading the printer control swapper. bit definitions are as follows: 1 1 1 2 3 4 5 6 70 strobe auto fd slct in irq enable dir init bit 7, 6: these two bits are a logic one during a read. they can be written. bit 5: direction control bit when this bit is a logic 1, the parallel port is in input mode (read); when it is a logic 0, the parallel port is in output mode (write). this bit can be read and written. in spp mode, this bit is invalid and fixed at zero. bit 4: a 1 in this position allows an interrupt to occur when a ck changes from low to high. bit 3: a 1 in this bit position selects the printer. bit 2: a 0 starts the printer (50 microsecond pulse, minimum). bit 1: a 1 causes the printer to line-feed after a line is printed. bit 0: a 0.5 microsecond minimum high active pulse clocks data into the printer. valid data must be present for a minimum of 0.5 microseconds before and after the strobe pulse. 7.2.4 epp address port the address port is available only in epp m ode. bit definitions are as follows: 1 2 3 4 5 6 70 pd0 pd1 pd2 pd3 pd5 pd4 pd6 pd7
w83877tf/w83877tg -50 - the contents of db0-db7 are buffered (non-invert ing) and output to ports pd0-pd7 during a write operation. the leading edge of iow c auses an epp address write cycle to be performed, and the trailing edge of iow latches the data for the duration of the epp write cycle. pd0-pd7 ports are read during a read operation. the leading edge of ior causes an epp address read cycle to be performed and the data to be output to the host cpu. 7.2.5 epp data port 0-3 these four registers are available only in epp mode. bit definitions of each data port are as follows: 1 2 3 4 5 6 7 0 pd0 pd1 pd2 pd3 pd4 pd5 pd6 pd7 when accesses are made to any epp data port, the cont ents of db0-db7 are buffered (non-inverting) and output to the ports pd0-pd7 during a write operation. the leading edge of iow causes an epp data write cycle to be performed, and the trailing edge of iow latches the data for the duration of the epp write cycle. during a read operation, ports pd0-pd7 are read, and the leading edge of ior causes an epp read cycle to be performed and the data to be output to the host cpu. 7.2.6 bit map of parallel port and epp registers register 7 6 5 4 3 2 1 0 data port (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 status buffer (read) busy a ck pe slct error 1 1 tmout control swapper (read) 1 1 1 irqen slin init autofd strobe control latch (write) 1 1 dir irq slin init autofd strobe epp address port (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 epp data port 0 (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 epp data port 1 (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 epp data port 2 (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 epp data port 3 (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0
w83877tf/w83877tg publication release date: may 2006 -51- revision 0.7 7.2.7 epp pin descriptions epp name type epp description nwrite o denotes an address or data read or write operation. pd<0:7> i/o bi-directional epp address and data bus. intr i used by peripheral dev ice to interrupt the host. nwait i inactive to acknowledge that data tr ansfer is completed. active to indicate that the device is ready for the next transfer. pe i paper end; same as spp mode. select i printer selected status; same as spp mode. ndstrb o this signal is active low. it denotes a data read or write operation. nerror i error; same as spp mode. ninits o this signal is active low. when it is active, the epp device is reset to its initial operating mode. nastrb o this signal is active low. it denotes an address read or write operation. 7.2.8 epp operation when the epp mode is selected in the configurati on register, the standard and bi-directional modes are also available. the pdx bus is in the standar d or bi-directional mode when no epp read, write, or address cycle is currently being executed. in th is condition all output signals are set by the spp control port and the direction is cont rolled by dir of the control port. a watchdog timer is required to prevent system lockup. the timer indicates that more than 10
w83877tf/w83877tg -52 - 7.3 extended capabilities parallel (ecp) port this port is software and hardware compatible with existing parallel ports, so it may be used as a standard printer mode if ecp is not required. it provides an automatic high burst-bandwidth channel that supports dma for ecp in both the forward (hos t to peripheral) and reverse (peripheral to host) directions. small fifos are used in both forward and reverse directions to improve the maximum bandwidth requirement. the size of the fifo is 16 bytes. the ecp port supports an automatic handshake for the standard parallel port to improve compatibility mode transfer speed. the ecp port supports run-length-encoded (rle) decompression (required) in the hardware. compression is accomplished by counting identical bytes and transmitting an rle byte that indicates how many times the next byte is to be repeated. the hardware support for compression is optional. for more information about the ecp protocol, refe r to the extended capabilities port protocol and isa interface standard. 7.3.1 ecp register and mode definitions name address i/o ecp modes function data base+000h r/w 000-001 data register ecpafifo base+000h r/w 011 ecp fifo (address) dsr base+001h r all status register dcr base+002h r/w all control register cfifo base+400h r/w 010 parallel port data fifo ecpdfifo base+400h r/w 011 ecp fifo (data) tfifo base+400h r/w 110 test fifo cnfga base+400h r 111 configuration register a cnfgb base+401h r/w 111 configuration register b ecr base+402h r/w all extended control register note: the base addresses are specified by cr23, which are det ermined by configuration regi ster or hardware setting. mode description 000 spp mode 001 ps/2 parallel port mode 010 parallel port data fifo mode 011 ecp parallel port mode 100 epp mode (if this option is enabled in the cr9 and cr0 to select ecp/epp mode) 101 reserved 110 test mode 111 configuration mode note: the mode selection bits are bit 7-5 of the extended control register.
w83877tf/w83877tg publication release date: may 2006 -53- revision 0.7 7.3.2 data and ecpafifo port modes 000 (spp) and 001 (ps/2) (data port) during a write operation, the data register latches the contents of the data bus on the rising edge of the input. the contents of this register are output to the pd0-pd7 ports. during a read operation, ports pd0-pd7 are read and output to the host. the bit definitions are as follows: 7 6 5 4 3 2 1 0 pd0 pd1 pd2 pd3 pd4 pd5 pd6 pd7 mode 011 (ecp fifo-address/rle) a data byte written to this address is placed in the fifo and tagged as an ecp address/rle. the hardware at the ecp port transmits this byte to the peripheral automatically. the operation of this register is defined only for the forward dire ction. the bit definitions are as follows: 7 6 5 4 3 2 1 0 address or rle address/rle 7.3.3 device status register (dsr) these bits are at low level during a read of the printer status register. the bits of this status register are defined as follows: 7 6 5 4 3 2 1 0 nfault select perror nack nbusy 1 11 bit 7: this bit reflects the complement of the busy input. bit 6: this bit reflects the nack input.
w83877tf/w83877tg -54 - bit 5: this bit reflects the perror input. bit 4: this bit reflects the select input. bit 3: this bit reflects the nfault input. bit 2-0: these three bits are not implem ented and are always logic one during a read. 7.3.4 device control register (dcr) the bit definitions are as follows: 7 6 5 4 3 2 1 0 11 strobe autofd ninit select in direction ackint en bit 6, 7: these two bits are logic one during a read and cannot be written. bit 5: this bit has no effect and the direction is always out if mode = 000 or mode = 010. direction is valid in all other modes. 0 the parallel port is in output mode. 1 the parallel port is in input mode. bit 4: interrupt request enable. when this bit is set to a high level, it may be used to enable interrupt requests from the parallel port to the cp u due to a low to high transition on the a ck input. bit 3: this bit is inverted and output to the slin output. 0 the printer is not selected. 1 the printer is selected. bit 2: this bit is output to the init output. bit 1: this bit is inverted and output to the a fd output. bit 0: this bit is inverted and output to the stb output. 7.3.5 cfifo (parallel port data fifo) mode = 010 this mode is defined only for the forward direction. the standard parallel port protocol is used by a hardware handshake to the peripheral to transmit bytes written or dm aed from the system to this fifo. transfers to the fifo are byte aligned. 7.3.6 ecpdfifo (ecp data fifo) mode = 011 when the direction bit is 0, bytes written or dmaed from the system to this fifo are transmitted by a hardware handshake to the peripheral using the ecp par allel port protocol. transfers to the fifo are byte aligned. when the direction bit is 1, data bytes from the peripheral are read under automatic hardware handshake from ecp into this fifo. reads or dmas from the fifo will return bytes of ecp data to the system.
w83877tf/w83877tg publication release date: may 2006 -55- revision 0.7 7.3.7 tfifo (test fifo mode) mode = 110 data bytes may be read, written, or dmaed to or fr om the system to this fifo in any direction. data in the tfifo will not be transmitted to the par allel port lines. however, data in the tfifo may be displayed on the parallel port data lines. 7.3.8 cnfga (configuration register a) mode = 111 this register is a read-only register . when it is read, 10h is returned. this indicates to the system that this is an 8-bit implementation. 7.3.9 cnfgb (configuration register b) mode = 111 the bit definitions are as follows: 7 6 5 4 3 2 1 0 1 1 1 intrvalue compress irqx 0 irqx 1 irqx 2 bit 7: this bit is read-only. it is at low level duri ng a read. this means that this chip does not support hardware rle compression. bit 6: returns the value on the isa irq line to determine possible conflicts. bit 5-3: reflect the irq resource assigned for ecp port. cnfgb[5:3] irq resource 000 reflect other irq resources sele cted by pnp register (default) 001 irq7 010 irq9 011 irq10 100 irq11 101 irq14 110 irq15 111 irq5 bit 2-0: these five bits are at hi gh level during a read and can be written .
w83877tf/w83877tg -56 - 7.3.10 ecr (extended control register) mode = all this register controls the extended ecp parallel por t functions. the bit definitions are follows: empty full service intr dma en nerrintr en mode mode mode 7 6 54 32 1 0 bit 7-5: these bits are read/write and select the mode. 000 standard parallel port mode. the fifo is reset in this mode. 001 ps/2 parallel port mode. this is the same as 000 except that direction may be used to tri-state the data lines and reading the dat a register returns the value on the data lines and not the value in the data register. 010 parallel port fifo mode. this is the same as 000 except that bytes are written or dmaed to the fifo. fifo data are autom atically transmitted using the standard parallel port protocol. this mode is useful only when direction is 0. 011 ecp parallel port mode. when the direction is 0 (forward direction), bytes placed into the ecpdfifo and bytes written to the ecpafifo are placed in a single fifo and transmitted automatically to the peripheral using ecp protocol. when the direction is 1 (reverse direction) bytes are moved from the ecp parallel port and packed into bytes in the ecpdfifo. 100 selects epp mode. in this mode, epp is active if the epp supported option is selected. 101 reserved. 110 test mode. the fifo may be written and r ead in this mode, but the data will not be transmitted on the parallel port. 111 configuration mode. the confga and conf gb registers are accessible at 0x400 and 0x401 in this mode. bit 4: read/write (valid only in ecp mode) 1 disables the interrupt generated on the asserting edge of nfault. 0 enables an interrupt pulse on the high to low edge of nfault. if nfault is asserted (interrupt) an interrupt will be generated and this bit is written from a 1 to 0. bit 3: read/write 1 enables dma. 0 disables dma unconditionally.
w83877tf/w83877tg publication release date: may 2006 -57- revision 0.7 bit 2: read/write 1 disables dma and all of the service interrupts. 0 enables one of the following cases of inte rrupts. when one of the service interrupts has occurred, the serviceintr bit is set to a 1 by hardware. this bit must be reset to 0 to re-enable the interrupts. writing a 1 to this bit will not cause an interrupt. (a) dmaen = 1: during dma this bit is set to a 1 when terminal count is reached. (b) dmaen = 0 direction = 0: this bit is set to 1 whenever there are writ eintr threshold or more bytes free in the fifo. (c) dmaen = 0 direction = 1: this bit is set to 1 whenever there are r eadintr threshold or more valid bytes to be read from the fifo. bit 1: read only 0 the fifo has at least 1 free byte. 1 the fifo cannot accept another byte or the fifo is completely full. bit 0: read only 0 the fifo contains at least 1 byte of data. 1 the fifo is completely empty. 7.3.11 bit map of ecp port registers d7 d6 d5 d4 d3 d2 d1 d0 note data pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 ecpafifo addr/rle address or rle field 2 dsr nbusy nack perror select nfault 1 1 1 1 dcr 1 1 directio ackinten selectin ninit autofd strobe 1 cfifo parallel port data fifo 2 ecpdfifo ecp data fifo 2 tfifo test fifo 2 cnfga 0 0 0 1 0 0 0 0 cnfgb compress intrvalue 1 1 1 1 1 1 ecr mode nerrintren dmaen serviceintr full empty notes: 1. these registers are available in all modes. 2. all fifos use one common 16-byte fifo.
w83877tf/w83877tg -58 - 7.3.12 ecp pin descriptions name type description nstrobe (hostclk) o the nstrobe registers data or address into the slave on the asserting edge during write operations. this signal handshakes with busy. pd<7:0> i/o these signals contains address or data or rle data. nack (periphclk) i this signal indicates valid data driven by the peripheral when asserted. this signal handshakes with nautofd in reverse. busy (periphack) i this signal desserts to indicate that the peripheral can accept data. it indicates whether the data lines contain ecp command information or data in the reverse direction. when in reverse direction, normal data are transferred when busy (periphack) is high and an 8-bit command is transferred when it is low. perror (nackreverse) i this signal is us ed to acknowledge a change in the direction of the transfer (asserted = forward). the peripheral drives this signal low to acknowledge nreverserequest. the host relies upon nackreverse to determine when it is permitted to drive the data bus. select (xflag) i indicates printer on line. nautofd (hostack) o requests a byte of data from the peripheral when it is asserted. this signal indicates whether the data lines contain ecp address or data in the forward direction. when in forward direction, normal data are transferred when nautofd (hostack) is high and an 8-bit command is transferred when it is low. nfault (nperiphrequest) i generates an error interrupt when it is asserted. this signal is valid only in the forward direction. the peripheral is permitted (but not required) to drive th is pin low to request a reverse transfer during ecp mode. ninit (nreverserequest) o this signal sets the transfer direction (asserted = reverse, deasserted = forward). this pin is driven low to place the channel in the reverse direction. nselectin (ecpmode) o this signal is always deasserted in ecp mode.
w83877tf/w83877tg publication release date: may 2006 -59- revision 0.7 7.3.13 ecp operation the host must negotiate on the parallel port to deter mine if the peripheral supports the ecp protocol before ecp operation. after negotiation, it is necessary to initialize some of the port bits. the following are required: (a) set direction = 0, enabling the drivers. (b) set strobe = 0, causing the nstrobe signal to default to the deasserted state. (c) set autofd = 0, causing the na utofd signal to default to the deasserted state. (d) set mode = 011 (ecp mode) ecp address/rle bytes or data bytes may be sent autom atically by writing the ecpafifo or ecpdfifo, respectively. mode switching software will execute p1284 negotiation and all oper ations prior to a data transfer phase under programmed i/o control (mode 000 or 001). hardware provides an automatic control line handshake, moving data between the fifo and the ecp port onl y in the data transfer phase (mode 011 or 010). if the port is in mode 000 or 001 it may switch to any other mode. if the port is not in mode 000 or 001 it can only be switched into mode 000 or 001. the direction can be changed only in mode 001. when in extended forward mode, the software should wa it for the fifo to be empty before switching back to mode 000 or 001. in ecp reverse mode the software waits for all the data to be read from the fifo before changing back to mode 000 or 001. command/data ecp mode allows the transfer of normal 8-bit data or 8-bit commands. in the forward direction, normal data are transferred when hostack is high and an 8-bi t command is transferred when hostack is low. the most significant bits of the command indicate w hether it is a run-length count (for compression) or a channel address. in the reverse direction, normal data are trans ferred when periphack is high and an 8-bit command is transferred when periphack is low. the most signi ficant bit of the command is always zero. data compression the w83877tf/tg supports run length encoded (rle ) decompression in hardware and can transfer compressed data to a peripheral. note that the odd (rle) compression in hardware is not supported. in order to transfer data in ecp mode, the compre ssion count is written to the ecpafifo and the data byte is written to the ecpdfifo. 7.3.14 fifo operation the fifo threshold is set in configuration register 5. all data transfers to or from the parallel port can proceed in dma or programmed i/o (non-dma) mode, as indicated by the selected mode. the fifo is used by selecting the parallel port fifo mode or ecp parallel port mode. after a reset, the fifo is disabled.
w83877tf/w83877tg -60 - 7.3.15 dma transfers dma transfers are always to or from the ecpdfifo, tfifo, or cf ifo. the dma uses the standard pc dma services. the ecp requests dm a transfers from the host by activating the pdrq pin. the dma will empty or fill the fifo using the appropriate di rection and mode. when the terminal count in the dma controller is reached, an interrupt is generated and serviceintr is asserted, which will disable the dma. 7.3.16 programmed i/o (non-dma) mode the ecp or parallel port fifos can also be operated using interrupt driven programmed i/o. programmed i/o transfers are to the ecpdfifo at 400h and ecpafifo at 000h or from the ecpdfifo located at 400h, or to/from the tfifo at 400h. the host must set the direction, state, dmaen = 0 and serviceintr = 0 in the programmed i/o transfers. the ecp requests programmed i/o transfers from the host by activating the irq pin. the programmed i/o will empty or fill the fifo using the appropriate direction and mode. 7.4 extension fdd mode (extfdd) in this mode, the w83877tf/tg changes the printer in terface pins to fdc input/output pins, allowing the user to install a second floppy disk drive (f dd b) through the db-25 printer connector. the pin assignments for the fdc input/output pins are shown in table 8-1. after the printer interface is set to extfdd mode, the following occur: (1) pins mob and dsb will be forced to inactive state. (2) pins dskchg , rdata , wp , trak0 , index will be logically ored with pins pd4-pd0 to serve as input signals to the fdc. (3) pins pd4-pd0 each will have an internal resistor of about 1k ohm to serve as pull-up resistor for fdd open drain/collector output. (4) if the parallel port is set to extfdd mode a fter the system has booted dos or another operating system, a warm reset is needed to enable the syst em to recognize the extension floppy drive. 7.5 extension 2fdd mode (ext2fdd) in this mode, the w83877tf/tg changes the printer in terface pins to fdc input/output pins, allowing the user to install two external floppy disk driv es through the db-25 printer connector to replace internal floppy disk drives a and b. the pin assignm ents for the fdc input/output pins are shown in table 8-1. after the printer interface is set to extfdd mode, the following occur: (1) pins mo a , ds a , mob , and dsb will be forced to inactive state. (2) pins dskchg , rdata , wp , trak0 , and index will be logically ored with pins pd4-pd0 to serve as input signals to the fdc. (3) pins pd4-pd0 each will have an internal resistor of about 1k ohm to serve as pull-up resistor for fdd open drain/collector output. (4) if the parallel port is set to ext2fdd mode a fter the system has booted dos or another operating system, a warm reset is needed to enable the syst em to recognize the extension floppy drive.
w83877tf/w83877tg publication release date: may 2006 -61- revision 0.7 8. plug and play configuration a powerful new plug-and-play function has been built into the w83877tf/tg to help simplify the task of setting up a computer environment. with appropriate support from bios manufacturers, the system designer can freely allocate winbond i/o devices (i .e., the fdc, prt and uart ) in the pc's i/o space (100h - 3ffh). in addition, the w83877tf/tg also provides 8 interrupt requests and 3 dma pairs for designers to assign in interfacing fdcs, uarts, and prts. hence this powerful i/o chip offers greater flexibility for system designers. the pnp feature is implemented through a set of extended function registers (cr20 to 29). details on configuring these registers are given in sect ion 11. the default values of these pnp-related registers set the system to a configuration co mpatible with environments designed with previous winbond i/o chips. 9. acpi /legacy feature and auto power management 9.1 acpi/legacy power management w83877tf/tg supports both acpi and legacy power management models. for the acpi power management, the sci pin is dedicated to the sci interrupt signal for the sci interrupt handler; for the legacy power management, the smi pin is dedicated to the smi interrupt signal for the smi interrupt handler. two register blocks is used for the acpi/ legacy power management. they are the pm1 and gpe register blocks. their base addresses are held in the w83877tf/tg configuration registers cr33 and cr34 respectively. configuration registers cr40 to cr45 are for the legacy power management. the above configuration registers hold t he interrupt event enable and status bits of the smi interrupts. control over the routing of sci and smi interrupts to the output pins is also contained in the above registers. one 24-bit power management timer is also implement ed. it provides an accurate time value used by the system software to measure and profiles system idleness. 9.2 device(auto) power management w83877tf/tg also provides the auto power management function for each device within it. they are the printer port, fdc, uart a, and uart b devices in w83877tf/tg respectively. device idle and trap status are provided to indicate the device's working/sleeping state. device idle timer with programmable initial value is provided for each device, which enter the powerdown state when the powerdown conditions are met. any access to certain registers and external event input will wake up the devices. the global stand-by timer deals with t he other logic part excluding the printer port, fdc, uart a , and uart b devices. the global stand-by timer reloads and counts down as soon as the 4 devices enter the powerdown mode and w83877tf/tg enters the powerdown mode as soon as it expires. once any device is awakened, the global st and-by is also awakened. the initial count values of the devices are held in the conf iguration registers cr35 to cr39.
w83877tf/w83877tg -62 - 10. serial irq w83877tf/tg supports a serial irq scheme. this a llow a signal line to be used to report the legacy isa interrupt requests. because more than one devic e may need to share the signal serial irq signal line, an open drain signal scheme is used. the clock sour ce is the pci clock. the serial interrupt is transferred on the irqser signal, one cycle consisting of three frames types: a start frame, several irq/data frame, and one stop frame. the serial interrupt scheme adheres to the serial irq specification for pci system, version 6.0. timing diagrams for irqser cycle start frame timing with source sampled a low pulse on irq1 sl or h hrtsrts s rr tt irq2 frame irq1 frame irq0 frame start frame start 1 irq1 irq1 none none host controller h=host control sl=slave control r=recovery t=turn-around s=sample pciclk irqser drive source 1. start frame pulse can be 4-8 clocks wide. stop frame timing with host using 17 irqser sampling period t sr t ssr rt next cycle stop frame irq14 stop 1 irq15 none none host controller h=host control i=idle r=recovery t=turn-around s=sample pciclk irqser drive 1. stop pulse is 2 clocks wide for quiet mode, 3 clocks wide for continuous mode. frame irq15 frame iochck frame i 2 hrt start 3 2. there may be none, one or more idle states during the stop frame. 3. the next irqser c y cle's start frame pulse ma y or ma y not start immediatel y after the turn-around clock of the stip frame.
w83877tf/w83877tg publication release date: may 2006 -63- revision 0.7 10.1 start frame there are two modes of operation for the irqser start frame: quiet mode and continuous mode. in the quiet mode, the peripheral drives the serirq signal active low for one clock, and then tri- states it. this brings all the states machines of the peripherals from idle to active states. the host controller will then take over driving irqser signal low in the next clock and will continue driving the irqser low for programmable 3 to 7 clock periods. this makes the total number of clocks low for 4 to 8 clock periods. after these clocks, the host cont roller will drive the irqser high for one clock and then tri-stated. in the continuous mode, only the host controller in itiates the start frame to update irq/data line information. the host controller drives the irqser signal low for 4 to 8 period clocks. upon reset, the irqser signal is defaulted to the continuous mode fo r the host controller to initiate the first start frame. 10.2 irq/data frame once the start frame has been initiated, all the peripherals must start counting frames based on the rising edge of the start pulse. each irq/data frame is three clocks: sample phase, recovery phase, and turn-around phase. during the sample phase, the peripheral drives serirq low if the corresponding irq should be active. if the corresponding irq is inactive, then irq ser must be left tri-stated. during the recovery phase, the peripheral device drives the irqser high. during the turn-around phase, the peripheral device left the irqser tri-stated. the irq/data frame has a number of specif ic order, as shown in table 10-1. table 10-1 irqser sampling periods irq/data frame signal sampled # of clocks past start 1 irq0 2 2 irq1 5 3 smi 8 4 irq3 11 5 irq4 14 6 irq5 17 7 irq6 20 8 irq7 23 9 irq8 26 10 irq9 29 11 irq10 32 12 irq11 35 13 irq12 38 14 irq13 41
w83877tf/w83877tg -64 - irq/data frame, continued irq/data frame signal sampled # of clocks past start 15 irq14 44 16 irq15 47 17 iochck 50 18 inta 53 19 intb 56 20 intc 59 21 intd 62 32:22 unassigned 95 10.3 stop frame after all irq/data frames have completed , the host controller will terminate irqser by a stop frame. only the host controller can initiate the stop frame by driving irqser low for 2 or 3 clocks. if the stop frame is low for 2 clocks, the next irqser cycle's sample mode is the quiet mode. if the stop frame is low for 3 clocks, the next irqser cycle's sample mode is the continuous mode. 10.4 reset and initialization after mr reset, irqser slaves are put into t he continuous(idle) mode. the host controller is responsible for starting the initial irqser cycle to collect system's irq/data default values. the system then follows with the continuous/quiet mode protocol (stop frame pulse width) for subsequent irqser cycles. it's the host controller' s responsibility to provide the default values to 8259's and other system logic before the first irq ser cycle is performed. for irqser system suspend, insertion, or removal application, the host controller should be programmed into continuous(idle) mode first. this is to guarantee ir qser bus in the idle state before the system configuration changes.
w83877tf/w83877tg publication release date: may 2006 -65- revision 0.7 11. extended function registers the w83877tf/tg provides many configuration registers for setting up different types of configurations. after power-on reset, the state of the hardware setting of each pin will be latched by the relevant configuration register to allo w the w83877tf/tg to enter the proper operating configuration. to protect the chip from invalid r eads or writes, the configuration registers cannot be accessed by the user. there are four ways to enable the configuration. n registers to be read or written. hefere (cr0 c bit 5) and hefras (cr16 bit 0) can be used to select one out of these four methods of entering the extended function mode as follows: hefras hefere address and value 0 0 write 88h to the location 250h 0 1 write 89h to the location 250h (power-on default) 1 0 write 86h to the location 3f0h twice 1 1 write 87h to the location 3f0h twice first, a specific value must be written once (88h/ 89h) or twice (86h/87h) to the extended functions enable register (i/o port address 250h or 3f0h). second, an index value (00h-19h, 20h-29h, 2ch- 2dh, 31h-3ah, 40h-45h) must be written to the ex tended functions index register (i/o port address 251h or 3f0h) to identify which configuration r egister is to be accessed. the designer can then access the desired configuration register through the extended functions data register (i/o port address 252h or 3f1h). after programming of the configuration register is finished, an additional value should be written to efers to exit the extended function mode to prev ent unintentional access to those configuration registers. in the case of efer at 250h, this additional value can be any value other than 88h if hefere = 0 and 89h if hefere = 1. while efer is at 3f0h, this additional value must be aah. the designer can also set bit 6 of cr9 (lockreg) to high to protect the configuration registers against accidental accesses. the configuration registers can be reset to their def ault or hardware settings only by a cold reset (pin mr = 1). a warm reset will not affect the configuration registers. 11.1 extended functions enable registers (efers) after a power-on reset, the w83877tf/tg enter s the default operating mode. before the w83877tf/tg enters the extended function mode, a s pecific value must be programmed into the extended function enable register (efer) so that the extended function register can be accessed. the extended function enable registers are write-onl y registers. on a pc/at system, their port addresses are 250h or 3f0h (as described in the above section).
w83877tf/w83877tg -66 - 11.2 extended function index registers (efirs), extended function data registers(efdrs) after the extended function mode is entered, the ex tended function index register (efir) must be loaded with an index value (0h, 1h, 2h, ..., or 29h) to access configuration register 0 (cr0), configuration register 1 (cr1), configuration register 2 (cr2), and so forth through the extended function data register (efdr). the efirs are wr ite-only registers with port address 251h or 3f0h (as described in section 11.0) on pc/at systems; the efdrs are read/write registers with port address 252h or 3f1h (as described in section 11.0) on pc/at systems. the function of each configuration register is described below. 11.2.1 configuration register 0 (cr0), default = 00h when the device is in extended function mode and ef ir is 0h, the cr0 register can be accessed through efdr. the bit definitions for cr0 are as follows: 7 6 5 4 3 2 1 0 ipd reserved reserved reserved reserved reserved prtmods0 prtmods1 bit 7-bit 4: reserved. prtmod1 prtmod0 (bit 3, 2): these two bits and prtmod2 (cr9 bit 7) deter mine the parallel port mode of the w83877tf (as shown in the following table 11-1). table 11-1 prtmods2 (bit 7 of cr9) prtmods1 (bit 3 of cr0) prtmods0 (bit 2 of cr0) 0 0 0 normal 0 0 1 extfdc 0 1 0 reserved 0 1 1 ext2fdd 1 0 0 reserved 1 0 1 epp/spp 1 1 0 ecp 1 1 1 ecp/epp
w83877tf/w83877tg publication release date: may 2006 -67- revision 0.7 00 normal mode (default), prtmod2 = 0 default state after power-on reset. in this mode, the w83877tf is fully compatible with the spp and bpp mode. 01 extension fdd mode (extfdd), prtmod2 = 0 10 reserved, prtmod2 = 0 11 extension 2fdd mode (ext2fdd), prtmod2 = 0 00 reserved, prtmod2 = 1 01 epp mode and spp mode, prtmod2 = 1 10 ecp mode, prtmod2 = 1 11 ecp mode and epp mode, prtmod2 = 1 bit 1: reserved. ipd (bit 0): this bit is used to select the w83877tf/tg's legacy power-down functions. when the bit 0 is set to 1, w83877tf/tg will stop its clock internally and enter power-down (ipd) mode immediately. w83877tf/tg will not leave the power-down mode until either a system power-on reset from the mr pin or this bit is reset to 0 to program the chip back to power-on state. 11.2.2 configuration register 1 (cr1), default = 00h when the device is in extended function mode and ef ir is 01h, the cr1 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 reserved reserved reserved reserved reserved reserved reserved abchg abchg (bit 7): this bit enables the fdc ab change mode. default to be enabled at power-on reset. 0 drives a and b assigned as usual 1 drive a and drive b assignments exchanged bit 6-bit 0: reserved.
w83877tf/w83877tg -68 - 11.2.3 configuration register 2 (cr2), default = 00h when the device is in extended function mode and ef ir is 02h, the cr2 register can be accessed through efdr. this register is reserved. 11.2.4 configuration register 3 (cr3), default = 30h when the device is in extended function mode and ef ir is 03h, the cr3 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 submidi suamidi reserved reserved reserved eppver reserved reserved bit 7-bit 6: reserved. eppver (bit 5): this bit selects the epp version of parallel port: 0 selects the epp 1.9 version 1 selects the epp 1.7 version (default) bit 4: reserved. bit 3-bit 2: reserved. suamidi (bit 1): this bit selects the clock divide rate of uarta. 0 disables midi support, uarta clock = 24 mhz divided by 13 (default) 1 enables midi support, uarta clock = 24 mhz divided by 12 submidi (bit 0): this bit selects the clock divide rate of uartb. 0 disables midi support, uartb clock = 24 mhz divided by 13 (default) 1 enables midi support, uartb clock = 24 mhz divided by 12
w83877tf/w83877tg publication release date: may 2006 -69- revision 0.7 11.2.5 configuration register 4 (cr4), default = 00h when the device is in extended function mode and ef ir is 04h, the cr4 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 urbtri uratri reserved prttri urbpwd urapwd reserved prtpwd prtpwd (bit 7): 0 supplies power to the parallel port (default) 1 puts the parallel port in power-down mode bit 6: reserved. urapwd (bit 5): 0 supplies power to coma (default) 1 puts coma in power-down mode urbpwd (bit 4): 0 supplies power to comb (default) 1 puts comb in power-down mode prttri (bit 3): this bit enables or disables the tri-state outputs of parallel port in power-down mode. 0 the output pins of the parallel port will not be tri-stated when parallel port is in power- down mode. (default) 1 the output pins of the parallel port will be tri-stated when parallel port is in power- down mode. bit 2: reserved. uratri (bit 1): this bit enables or disables the tri-st ate outputs of uarta in power-down mode. 0 the output pins of uarta will not be tr i-stated when uarta is in power-down mode. 1 the output pins of uarta will be tri- stated when uarta is in power-down mode. urbtri (bit 0): this bit enables or disables the tri-st ate outputs of uartb in power-down mode. 0 the output pins of uartb will not be tr i-stated when uartb is in power-down mode. 1 the output pins of uartb will be tri- stated when uartb is in power-down mode.
w83877tf/w83877tg -70 - 11.2.6 configuration register 5 (cr5), default = 00h when the device is in extended function mode and ef ir is 05h, the cr5 register can be accessed through efdr. the bit definitions are as follows: 7 0 ecpfthr0 ecpfthr1 ecpfthr2 reserved reserved reserved reserved ecpfthr3 6 5 4 3 2 1 bit 7- bit 4: reserved ecpfthr3-0 (bit 3-0): these four bits define t he fifo threshold for the ecp mode parallel port. the default value is 0000 after power-up. 11.2.7 configuration register 6 (cr6), default = 00h when the device is in extended function mode and ef ir is 06h, the cr6 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 fdctri reserved fdcpwd fipurdwm sel4fdd reserved reserved reserved bit 7- bit 6: reserved sel4fdd (bit 5): selects four fdd mode 0 selects two fdd mode (default, see table 11-2) 1 selects four fdd mode ds a , dsb , mo a and mob output pins are encoded as show in table 11-3 to select four drives.
w83877tf/w83877tg publication release date: may 2006 -71- revision 0.7 table 11-2 do register ( 3f2h ) drive bit 7 bit 6 bit 5 bit 4 bit 1 bit 0 mob moa dsb dsa selected 0 0 0 0 0 0 1 1 1 1 -- 0 0 0 1 0 0 1 0 1 0 fdd a 0 0 1 0 0 1 0 1 0 1 fdd b 0 1 0 0 0 1 1 1 1 1 -- 1 0 0 0 1 1 1 1 1 1 -- table 11-3 do register ( 3f2h ) drive bit 7 bit 6 bit 5 bit 4 bit 1 bit 0 mob moa dsb dsa selected 0 0 0 0 x x 1 1 x x -- 0 0 0 1 0 0 0 0 0 0 fdd a 0 0 1 0 0 1 0 0 0 1 fdd b 0 1 0 0 1 0 0 0 1 0 fdd c 1 0 0 0 1 1 0 0 1 1 fdd d fipurdwn (bit 4): this bit controls the internal pull-up resistors of the fdc input pins rdata , index , trak0 , dskchg , and wp . 0 the internal pull-up resistors of fdc are turned on. (default) 1 the internal pull-up resistors of fdc are turned off. fdcpwd (bit 3): this bit controls the power to the fdc. 0 power is supplied to the fdc. (default) 1 puts the fdc in power-down mode. bit 2: reserved. fdctri (bit 1): this bit enables or disables the tri-stat e outputs of the fdc in power-down mode. 0 the output pins of the fdc will not be tri-stated when fdc is in power-down mode. 1 the output pins of the fdc will be tri-stated when fdc is in power-down mode. bit 0: reserved.
w83877tf/w83877tg -72 - 11.2.8 configuration register 7 (cr7), default = 00h when the device is in extended function mode and ef ir is 07h, the cr7 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 fdd a type 0 fdd a type 1 fdd b type 0 fdd b type 1 fdd c type 0 fdd c type 1 fdd d type 0 fdd d type 1 fdd d type 1, 0 (bit 7, 6): these two bits select the type of fdd d. 00 selects normal mode. when rwc = 0, the data transfer rate is 250 kb/s. when rwc = 1, the data transfer rate is 500 kb/s. three mode fdd select (en3mode = 1): 01 rwc = 0, selects 1.2 mb high-density fdd. 10 rwc = 1, selects 1.44 mb high-density fdd. 11 don't care rwc , selects 720 kb double-density fdd. fdd c type 1, 0 (bit 5, 4): these two bits select the type of fdd c. 00 selects normal mode. when rwc = 0, the data transfer rate is 250 kb/s. when rwc = 1, he data transfer rate is 500 kb/s. three mode fdd select (en3mode = 1): 01 rwc = 0, selects 1.2 mb high-density fdd. 10 rwc = 1, selects 1.44 mb high-density fdd. 11 don't care rwc , selects 720 kb double-density fdd. fdd b type 1, 0 (bit 3, 2): these two bits select the type of fdd b. 00 selects normal mode. when rwc = 0, the data transfer rate is 250 kb/s. when rwc = 1, the data transfer rate is 500 kb/s. three mode fdd select (en3mode = 1): 01 rwc = 0, selects 1.2 mb high-density fdd. 10 rwc = 1, selects 1.44 mb high-density fdd. 11 don't care rwc , selects 720 kb double-density fdd.
w83877tf/w83877tg publication release date: may 2006 -73- revision 0.7 fdd a type 1, 0 (bit 1, 0): these two bits select the type of fdd a. 00 selects normal mode. when rwc = 0, the data transfer rate is 250 kb/s. when rwc = 1, the data transfer rate is 500 kb/s. three mode fdd select (en3mode = 1): 01 rwc = 0, selects 1.2 mb high-density fdd. 10 rwc = 1, selects 1.44 mb high-density fdd. 11 don't care rwc , selects 720 kb double-density fdd. 11.2.9 configuration register 8 (cr8), default = 00h when the device is in extended function mode and ef ir is 08h, the cr8 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 floppy boot drive 0 floppy boot drive 1 media id 0 media id 1 disfddwr reserved reserved swwp bit 7 - bit 6: reserved. disfddwr (bit 5): this bit enables or disables fdd write data. 0 enables fdd write 1 disables fdd write (forces pins we , wd to stay high) once this bit is set high, the fdc operates normally, but because pin we is inactive, the fdd will not write data to diskettes. for example, if a diskette is formatted with disfddwr = 1, after the format command has been executed, messages will be displayed that appear to indicate that the format is complete. if the diskette is removed from the di sk drive and inserted again, however, typing the dir command will reveal that the contents of the di skette have not been modified and the diskette was not actually reformatted. because as the operating system (e.g., dos) reads the diskette files, it keeps the files in memory, if there is a write operation, dos will write data to the diskette and memory simultaneously. when dos wants to read the diskette, it will first search for the files in memory. if dos finds the file in memory, it will not issue a read command to read the diskette. when disfddwr = 1, dos still writes data to the diskette and memory, but only the data in memory are updated. if a read operation is performed, data are read from memory first, and not from the diske tte. the action of removing the diskette from the drive and inserting it again forces the dskchg pin active. dos will then read the contents of the
w83877tf/w83877tg -74 - diskette and will show that the contents have not been modified. the same holds true with write commands. this disable fdd write function allows users to pr otect diskettes against computer viruses by ensuring that no data are written to the diskette. swwp (bit 4): 0 normal, use wp to determine whether the fdd is write-protected or not 1 fdd is always write-protected media id 1 media id 0 (bit 3, 2): these two bits hold the media id bit 1, 0 for three mode floppy boot drive 1 floppy boot drive 0 (bit 1, 0) these two bits hold the value of floppy boot drive 1 and drive 0 for three mode 11.2.10 configuration register 9 (cr9), default = 0ch when the device is in extended function mode and ef ir is 09h, the cr9 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 chip id0 chip id1 chip id2 chip id3 reserved lockreg en3mode prtmods2 prtmods2 (bit 7): this bit and prtmods1, prtmods0 (bits 3, 2 of cr0) select the operating mode of the w83877tf/tg. refer to the descriptions of cr0. lockreg (bit 6): this bit enables or disables the reading and writing of all configuration registers. 0 enables the reading and writing of cr0-cr45 1 disables the reading and writing of cr0-cr45 (locks w83877tf/tg extension functions) en3mode (bit 5): this bit enables or disables three mode fdd selecti on. when this bit is high, it enables the read/write 3f3h register. 0 disables 3 mode fdd selection 1 enables 3 mode fdd selection when three mode fdd function is enabled, the value of rwc depends on bit 5 and bit 4 of tdr(3f3h). the values of rwc and their meaning are shown in table 11-4.
w83877tf/w83877tg publication release date: may 2006 -75- revision 0.7 table 11-4 bit 5 of tdr bit 4 of tdr rwc rwc = 0 rwc = 1 0 0 normal 250k bps 500k bps 0 1 0 1.2 m fdd x 1 0 1 x 1.4m fdd 1 1 x x x bit 4: reserved. chip id 3, chip id 2, chip id 1, chip id 0 (bit 3-bit 0): these four bits are read-only bits that contain chip identification information. the value is 0ch for w83877tf/tg during a read. 11.2.11 configuration register a (cr0a), default = 00h when the device is in extended function mode and efir is 0ah, the cra register can be accessed through efdr. this register is reserved. 11.2.12 configuration register b (cr0b), default = 0ch when the device is in extended function mode and efir is 0bh, the crb register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 drv2en invertz ident enifchg mfm rxw4c txw4c reserved bit 7: reserved. txw4c (bit 6): this bit is active high. when active, the ir controlle r will wait for a 4-character period of time after the end of last receiving before it can start transmitting data. rxw4c (bit 5): this bit is active high. when active, the ir controlle r will wait for a 4-character period of time after the end of last transmitting before it can start receiving data. enifchg (bit 4): this bit is active high. when active, it enables host interface mode change, which is determined by ident (bit 3) and mfm (bit 2).
w83877tf/w83877tg -76 - ident (bit 3): this bit indicates the type of drive being accessed and changes the level on rwc (pin 87). 0 rwc will be active low for high data rates (typically used for 3.5" drives) 1 rwc will be active high for high data rates (typically used for 5.25" drives) when hardware reset or enifchg is a logic 1, id ent and mfm select one of three interface modes, as shown in table 11-5. table 11-5 ident mfm interface 0 0 model 30 mode 0 1 ps/2 mode 1 0 at mode 1 1 at mode mfm (bit 2): this bit and ident select one of the three interf ace modes (ps/2 mode, model 30, or pc/at mode). intvertz (bit 1): this bit determines the polarity of all fdd interface signals. 0 fdd interface signals are active low 1 fdd interface signals are active high drv2en (bit 0): ps/2 mode only when this bit is a logic 0, this indicates that a second drive is installed and is reflected in status register a. 11.2.13 configuration register c (cr0c), default = 28h when the device is in extended function mode and efir is 0ch, the cr0c register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 tx2inv rx2inv reserved urirsel reserved hefere turb tura
w83877tf/w83877tg publication release date: may 2006 -77- revision 0.7 tura (bit 7): 0 the clock source of uart a is 1.8462 mhz (24 mhz divide 13) (default) 1 the clock source of uart a is 24 mhz, it can make the baudrate of uart a up to 1.5 mhz turb (bit 6): 0 the clock source of uart b is 1.8462 mhz (24 mhz divide 13) (default) 1 the clock source of uart b is 24 mhz, it can make the baudrate of uart a up to 1.5 mhz hefere (bit 5): this bit combines with he fras (cr16 bit 0) to define how to enable extended function registers. hefras hefere address and value 0 0 write 88h to the location 250h 0 1 write 89h to the location 250h (default) 1 0 write 86h to the location 3f0h twice 1 1 write 87h to the location 3f0h twice the default value of hefere is 1. bit 4: reserved. urirsel (bit 3): 0 select uart b as ir function. 1 select uart b as normal function. the default value of urirsel is 1. bit 2: reserved. rx2inv (bit 1): 0 the sinb pin of uart b function or i rrx pin of ir function in normal condition. 1 inverse the sinb pin of uart b function or irrx pin of ir function tx2inv (bit 0): 0 the soutb pin of uart b function or ir tx pin of ir function in normal condition. 1 inverse the soutb pin of uart b function or irtx pin of ir function.
w83877tf/w83877tg -78 - 11.2.14 configuration register d (cr0d), default = a3h when the device is in extended function mode and efir is 0dh, the cr0d register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 sirtx1 sirtx0 sirrx1 sirrx0 hduplx irmode2 irmode1 irmode0 sirtx1 (bit 7): irtx pin selection bit 1 sirtx0 (bit 6): irtx pin selection bit 0 sirtx1 sirtx0 irtx output on pin 0 0 disabled 0 1 irtx1 (pin 43) 1 0 irtx2 (pin 95) 1 1 disabled sirrx1 (bit 5): irrx pin selection bit 1 sirrx0 (bit 4): irrx pin selection bit 0 sirrx1 sirrx0 irrx input on pin 0 0 disabled 0 1 irrx1 (pin 42) 1 0 irrx2 (pin 94) 1 1 disabled hduplx (bit 3): 0 the ir function is full duplex. 1 the ir function is half duplex. irmode2 (bit 2): ir function mode selection bit 2 irmode1 (bit 1): ir function mode selection bit 1 irmode0 (bit 0): ir function mode selection bit 0
w83877tf/w83877tg publication release date: may 2006 -79- revision 0.7 ir mode ir function irtx irrx 00x disable tri-state high 010* irda active pulse 1.6 note: the notation is normal mode in the ir function. the sir schematic diagram for registers crc and crd is shown below. 1 0 1 mux 0 1 0 01 00 10 11 11,00 01 10 1 mux 0 1 mux 0 1 0 mux irda mod. 3/16 irda mod. mod1.6u irda irmode0 irmode2 (crd.bit2) urirsel (crc,bit3) transmission time frame 16550a sin uart2 sout rx2inv (crc.bit1) urirsel (crc.bit3) 1 0 mux sirrx1~0 cr0d.bit5,4 ask_ir sin2 irmode1 (crd.bit3) huplx irmode0 (crd.bit0) 500khz mux mux (crd.bit1) irmode2 (crd.bit2) irmode2,1=00 (crd.bit0) disable irtx1 irtx2 sout2 ncs1 irrx1 irrx2 +5v ncs0 +5v sirtx1~0 crd.bit7,6 tx2inv crc.bit0 mux mux ir-da demodulation demodulation (default) (default) 11.2.15 configuration register e (cr0 e), configuration register f (cr0f) reserved for testing. should be kept all 0's.
w83877tf/w83877tg -80 - 11.2.16 configuration register 10 (cr10), default = 00h when the device is in extended function mode and ef ir is 10h, the cr10 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 gio0ad7 gio0ad0 gio0ad1 gio0ad2 gio0ad3 gio0ad4 gio0ad5 gio0ad6 gio0ad7-gio0ad0 (bit 7-bit 0): giop0 (pin 92) address bit 7 - bit 0. 11.2.17 configuration register 11 (cr11), default = 00h when the device is in extended function mode and ef ir is 11h, the cr11 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 g0cadm1 gio0ad8 gio0ad9 gio0ad10 reserved g0cadm0 reserved reserved g0cadm1-g0cadm0 (bit 7, 6): giop 0 address bit compare mode selection g0cadm1 g0cadm0 giop0 pin 0 0 compare gio0ad10-gio0ad0 with sa10-sa0 0 1 compare gio0ad10-gio0ad1 with sa10-sa1 1 0 compare gio0ad10-gio0ad2 with sa10-sa2 1 1 compare gio0ad10-gio0ad3 with sa10-sa3 bit 5-bit 3: reserved gio0ad10-gio0ad8 (bit 2-bit 0): gi op0 (pin 92) address bit 10-bit 8.
w83877tf/w83877tg publication release date: may 2006 -81- revision 0.7 11.2.18 configuration register 12 (cr12), default = 00h when the device is in extended function mode and ef ir is 12h, the cr12 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 gio1ad7 gio1ad0 gio1ad1 gio1ad2 gio1ad3 gio1ad4 gio1ad5 gio1ad6 gio1ad7-gio1ad0 (bit 7-bit 0): giop 1 (pin 96) address bit 7-bit 0. 11.2.19 configuration register 13 (cr13), default = 00h when the device is in extended function mode and ef ir is 13h, the cr13 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 g1cadm1 gio1ad8 gio1ad9 gio1ad10 reserved g1cadm0 reserved reserved g1cadm1-g1cadm0 (bit 7, 6): giop 1 address bit compare mode selection g1cadm1 g1cadm0 giop1 pin 0 0 compare gio1ad10-gio1ad0 with sa10-sa0 0 1 compare gio1ad10-gio1ad1 with sa10-sa1 1 0 compare gio1ad10-gio1ad2 with sa10-sa2 1 1 compare gio1ad10-gio1ad3 with sa10-sa3 bit 5- bit 3: reserved gio1ad10-gio1ad8 (bit 2-bit 0): gi op1 (pin 96) address bit 10-bit 8.
w83877tf/w83877tg -82 - 11.2.20 configuration register 14 (cr14), default = 00h when the device is in extended function mode and ef ir is 14h, the cr14 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 gda0ipi gda0opi gcs0iow gcs0ior gio0csh giop0md0 giop0md1 giop0md2 giop0md2-giop0md0 (bit 7-bit 5): giop0 pin mode selection giop0md2 giop0md1 giop0md0 giop0 pin 0 0 0 0 0 1 inactive (tri-state) as a data output pin (sd0 ?
w83877tf/w83877tg publication release date: may 2006 -83- revision 0.7 gcs0iow (bit 2): see below. gcs0ior gcs0iow 0 0 giop0 functions as a chip select pin, and will be active when (aen = l) and (sa10-0 = gio0ad10-0) 0 1 giop0 functions as a chip select pin, and will be active when (aen = l) and (sa10-0 = gio0ad10-0) and (niow = l) 1 0 giop0 functions as a chip select pin, and will be active when (aen = l) and (sa10-0 = gio0ad10-0) and (nior = l) 1 1 giop0 functions as a chip select pin, and will be active when (aen = l) and (sa10-0 = gio0ad10-0) and (niow = l or nior = l) gda0opi (bit 1): see below. gda0ipi (bit 0): see below. gda0opi gda0ipi 0 0 giop0 functions as a data pin, and giop0 sd0, sd0 giop0 0 1 giop0 functions as a data pin, and inverse giop0 sd0, sd0 giop0 1 0 giop0 functions as a data pin, and giop0 sd0, inverse sd0 giop0 1 1 giop0 functions as a data pin, and inverse giop0 sd0, inverse sd0 giop0 11.2.21 configuration register 15 (cr15), default = 00h when the device is in extended function mode and ef ir is 15h, the cr15 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 gda0ipi gda0opi gcs0iow gcs0ior gio0csh giop0md0 giop0md1 giop0md2
w83877tf/w83877tg -84 - giop1md2-giop1md0 (bit 7-bit 5): giop1 pin mode selection giop1md2 giop1md1 giop1md0 giop1 pin 0 0 0 inactive (tri-state) 0 0 1 as a data output pin (sd1 giop1), when (aen = l) and (niow = l) and (sa10-0 = gio1ad10-0), the value of sd1 will be present on giop1 0 1 0 as a data input pin (giop1 sd1), when (aen = l) and (nior = l) and (sa10-0 = gio1ad10-0), the value of giop1 will be present on sd1 0 1 1 as a data input/output pin (giop1 ? sd1). when (aen = l) and (niow = l) and (sa10-0 = gio1ad10-0), the value of sd1 will be present on giop1 when (aen = l) and (nior = l) and (sa10-0 = gio1ad10-0), the value of giop1 will be present on sd1 1 x x as a chip select pin, the pin will be active at (aen = l) and (sa10-0 = gio1ad10-0) or (nior = l) or (niow = l) gio1csh (bit 4): 0 the chip select pin will active low when (aen = l) and (sa10-0 = gioad10-0) or (nior = l) or (niow = l) 1 the chip select pin will active high w hen (aen = l) and (sa10-0 = gioad10-0) or (nior = l) or (niow = l) gcs1ior (bit 3): see below. gcs1iow (bit 2): see below. gcs1ior gcs1iow 0 0 giop1 functions as a chip select pin, and will be active when (aen = l) and (sa10-0 = gio1ad10-0) 0 1 giop1 functions as a chip select pin, and will be active when (aen = l) and (sa10-0 = gio1ad10-0) and (niow = l) 1 0 giop1 functions as a chip select pin, and will be active when (aen = l) and (sa10-0 = gio1ad10-0) and (nior = l) 1 1 giop1 functions as a chip select pin, and will be active when (aen = l) and (sa10-0 = gio1ad10-0) and (niow = l or nior = l) gda0opi (bit 1): see below.
w83877tf/w83877tg publication release date: may 2006 -85- revision 0.7 gda1ipi (bit 0): see below. gda1opi gda1ipi 0 0 giop1 functions as a data pin, and giop1 sd1, sd1 giop1 0 1 giop1 functions as a data pin, and inverse giop1 sd1, sd1 giop1 1 0 giop1 functions as a data pin, and giop1 sd1, inverse sd1 giop1 1 1 giop1 functions as a data pin, and inverse giop1 sd1, inverse sd1 giop1 11.2.22 configuration register 16 (cr16), default = 04h when the device is in extended function mode and ef ir is 16h, the cr16 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 hefras reserved pnpcvs reserved g0iqsel g1iqsel reserved reserved bit 7-bit 6: reserved. g1iqsel (bit 5): 0 pin 96 function as irq_a. 1 pin 96 function as gio1. the corresponding power-on setting pin is nrtsb (pin 45). g0iqsel (bit 4): 0 pins 92 function as irq_b. 1 pins 92 function as gio0. the corresponding power-on setting pin is nrtsb (pin 45). bit 3: reserved. pnpcvs (bit 2): 0 pnp-related registers (cr20, cr23-29) reset to be all 0s. 1 default settings for these registers.
w83877tf/w83877tg -86 - the corresponding power-on setting pin is nrtsa (pin 36). pnp register pnpcvs = 1 pnpcvs = 0 cr20 fch 00h cr23 deh 00h cr24 feh 00h cr25 beh 00h cr26 23h 00h cr27 05h 00h cr28 43h 00h cr29 60h 00h note: the new value of pnpcvs must be complementary to the old one to make an effective change. for example, the user must set pnpcvs to 1 first and then reset it to 0 to reset these pnp registers if the present value of pnpcvs is 0. bit 1: reserved. hefras (bit 0): combines with hefere (bit 5 of cr0c) to define how to access extended function registers (refer to bit 5 of cr0c description). the corresponding power-on setting pin is ndtra (pin 35). 11.2.23 configuration register 17 (cr17), default = 00h when the device is in extended function mode and ef ir is 17h, the cr17 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 dsublgrq dsualgrq dsprlgrq dsfdlgrq prirqod reserved reserved reserved bit 7-bit 5: reserved. prirqod (bit 4): 0 printer irq ports are totem-poles in spp mode and open-drains in ecp/epp mode. 1 printer irq ports are totem-poles in all modes. dsfdlgrq (bit 3): 0 enable fdc legacy mode on irq and drq selections. do register bit 3 has effect on selecting irq. 1 disable fdc legacy mode on irq and drq selections. do register bit 3 has no effect on selecting irq.
w83877tf/w83877tg publication release date: may 2006 -87- revision 0.7 dsprlgrq (bit 2): 0 enable prt legacy mode on irq and drq selections. dcr bit 4 has effect on selecting irq. 1 disable prt legacy mode on irq and drq selections. dcr bit 4 has no effect on selecting irq. dsualgrq (bit 1): 0 enable uart a legacy mode on irq selection. mcr bit 3 has effect on selecting irq. 1 disable uart a legacy mode on irq selection. mcr bit 3 has no effect on selecting irq. dsublgrq (bit 0): 0 enable uart b legacy mode on irq selection. mcr bit 3 has effect on selecting irq. 1 disable uart b legacy mode on irq selection. mcr bit 3 has no effect on selecting irq. 11.2.24 configuration register 18 (cr18), default=00h when the device is in extended function mode and ef ir is 18h, the cr18 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 shara sharb sharc shard share sharf sharg sharh this register is used to select whether these inte rrupt request pins are in the irq sharing mode. while in the irq sharing mode, the corresponding pin is low active for 200ns for the interrupt request and keeps tri-stated otherwise. sharh (bit 7): 0 pin irq_h in the legacy isa irq mode. 1 pin irq_h in the irq sharing mode. sharg (bit 6): 0 pin irq_g in the legacy isa irq mode. 1 pin irq_g in the irq sharing mode.
w83877tf/w83877tg -88 - sharf (bit 5): 0 pin irq_f in the legacy isa irq mode. 1 pin irq_f in the irq sharing mode. share (bit 4): 0 pin irq_e in the legacy isa interrupt mode. 1 pin irq_e in the irq sharing mode. shard (bit 3): 0 pin irq_d in the legacy isa irq mode. 1 pin irq_d in the irq sharing mode. sharc (bit 2): 0 pin irq_c in the legacy isa irq mode. 1 pin irq_c in the irq sharing mode. sharb(bit 1): 0 pin irq_b in the legacy isa irq mode. 1 pin irq_b in the irq sharing mode. shara (bit 0): 0 pin irq_a in the legacy isa irq mode. 1 pin irq_a in the irq sharing mode. 11.2.25 configuration register 19 (cr19), default=00h when the device is in extended function mode and ef ir is 19h, the cr19 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 fastb fasta reserved reserved reserved reserved reserved reserved
w83877tf/w83877tg publication release date: may 2006 -89- revision 0.7 this register is used for the high speed modem applicati on. while the bit is set to logic 1 it can make the baudrate of uart up to 921.2kbps (the clock source of uart is 14.769mhz) for high speed transmit/receive. bit 7 - bit 2: reserved. fasta (bit 1): 0 the clock source of uart a is the sa me as the frequency of tura (cr0c bit 7) and suamidi (cr3 bit 1) selected. 1 the clock source of uart a is 14.769mhz. fastb (bit 0): 0 the clock source of uart b is the sa me as the frequency of turb (cr0c bit 6) and submidi (cr3 bit 0) selected. 1 the clock source of uart b is 14.769mhz. 11.2.26 configuration register 20 (cr20) when the device is in extended function mode and ef ir is 20h, the cr20 register can be accessed through efdr. default = fch if cr16 bit 2 = 1; defaul t = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved reserved fdcad2 fdcad3 fdcad4 fdcad5 fdcad6 fdcad7 this register is used to select the base address of the floppy disk controller (fdc) from 100h-3f0h on 16-byte boundaries. ncs = 0 and a10 = 0 are requir ed to access the fdc registers. a[3:0] are always decoded as 0xxxb. fdcad7-fdcad2 (bit 7-bit 2): match a[9:4]. bit 7 = 0 and bit 6 = 0 disable this decode. bit 1-bit 0: reserved, fixed at zero. 11.2.27 configuration register 23 (cr23) when the device is in extended function mode and ef ir is 23h, the cr23 register can be accessed through efdr. default = deh if cr16 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows:
w83877tf/w83877tg -90 - 1 2 3 4 5 6 7 0 prtad0 prtad1 prtad2 prtad3 prtad4 prtad5 prtad6 prtad7 this register is used to select the base address of the parallel port. if epp is disable, the parallel port can be set from 100h-3fch on 4-byte boundaries. if epp is enable, the parallel port can be set from 100h-3f8h on 8-byte boundaries. ncs = 0 and a10 = 0 are required to access the parallel port when in compatible, bi-directional, or epp m odes. a10 is active in ecp mode. prtad7-prtad0 (bit 7-bit 0): match a[9:2]. bit 7 = 0 and bit 6 = 0 disable this decode. 11.2.28 configuration register 24 (cr24) when the device is in extended function mode and ef ir is 24h, the cr24 register can be accessed through efdr. default = feh if cr16 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved uraad1 uraad2 uraad3 uraad4 uraad5 uraad6 uraad7 this register is used to select the base addr ess of the uart a from 100h-3f8h on 8-byte boundaries. ncs = 0 and a10 = 0 are required to access the uart a registers. a[2:0] are don't-care conditions. uraad7-uraad1 (bit 7-bit 1): match a[9:3]. bit 7 = 0 and bit 6 = 0 disable this decode. bit 0: reserved, fixed at zero. 11.2.29 configuration register 25 (cr25) when the device is in extended function mode and ef ir is 25h, the cr25 register can be accessed through efdr. default = beh if cr16 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved urbad1 urbad2 urbad3 urbad4 urbad5 urbad6 urbad7
w83877tf/w83877tg publication release date: may 2006 -91- revision 0.7 this register is used to select the base addr ess of the uart b from 100h-3f8h on 8-byte boundaries. ncs = 0 and a10 = 0 are required to acce ss the uart b registers. a[2:0] are don't-care conditions. urbad7-urbad1 (bit 7-bit 1): match a[9:3]. bit 7 = 0 and bit 6 = 0 disable this decode. bit 0: reserved, fixed at zero. 11.2.30 configuration register 26 (cr26) when the device is in extended function mode and ef ir is 26h, the cr26 register can be accessed through efdr. default = 23h if cr16 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 prtdqs0 prtdqs1 prtdqs2 prtdqs3 fdcdqs0 fdcdqs1 fdcdqs2 fdcdqs3 fdcdqs3-fdcdqs0 (bit 7-bit 4): allocate dma resource for fdc. prtdqs3-prtdqs0 (bit 3-bit 0): a llocate dma resource for prt. bit 7- bit4, bit 3 - bit 0 dma selected 0000 none 0001 dma_a 0010 dma_b 0011 dma_c 11.2.31 configuration register 27 (cr27) when the device is in extended function mode and ef ir is 27, the cr27 register can be accessed through efdr. default = 05h if cr6 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 prtiqs0 prtiqs1 prtiqs2 prtiqs3 reserved ecpirqx0 ecpirqx1 ecpirqx2
w83877tf/w83877tg -92 - ecpirqx2-ecpirqx0 (bit7-bit 5): t hese bits are configurable equivalents to bit[5:3] of cnfgb register in ecp mode except that cnfgb[5:3] are read-only bits. they indicate the irq resource assigned for the ecp printer port. it is the software designer 's responsibility to ensure that cr27[7:5] and cr27[3:0] are consistent. for exam ple, cr27[7:5] should be filled with 001 (select irq 7) if cr27[3:0] are to be programmed as 0101 (select irq_e) while irq_e is connected to irq 7. cr27[7:5] irq resource 000 reflect other irq resources selected by cr27[3:0] (default) 001 irq 7 010 irq 9 011 irq 10 100 irq 11 101 irq 14 110 irq 15 111 irq 5 bit 4: reserved. prtiqs3-prtiqs0 (bit 3-bit 0): select irq resour ce for the parallel port. any unselected irq pin is in tri-state. cr27[3:0] select irq pin 0000 none 0001 irq_a 0010 irq_b 0011 irq_c 0100 irq_d 0101 irq_e 0110 irq_f 0111 irq_g 1000 irq_h while in the serial irq mode (irqmods=1, cr31 bit2 ), the above selection is invalid and all the irq signal pins, from irq_a to irq_h, are all in tr i-state. the parallel port irq is dedicated to the serirq pin. for the host controller to correctly sa mple the parallel port irq, the parallel port irq should be programmed to appear in one of irq/data frame sampling periods. in serial irq mode, the definition of prti qs3-prtiqs0 (bit 3-bit 0) is as follows: prtiqs3-prtiqs0 (bit 3-bit 0): select the ir q/data frame sampling period on the serirq pin.
w83877tf/w83877tg publication release date: may 2006 -93- revision 0.7 cr27[3:0] irq/data frame period 0000 none 0001 irq1 0010 reserved for smi 0011 irq3 0100 irq4 0101 irq5 0110 irq6 0111 irq7 1000 irq8 1001 irq9 1010 irq10 1011 irq11 1100 irq12 1101 irq13 1110 irq14 1111 irq15 11.2.32 configuration register 28 (cr28) when the device is in extended function mode and ef ir is 28, the cr28 register can be accessed through efdr. default = 43h if cr6 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbiqs0 urbiqs1 urbiqs2 urbiqs3 uraiqs0 uraiqs1 uraiqs2 uraiqs3 uraiqs3-uraiqs0 (bit 7-bit 4): alloca te interrupt resource for uart a. urbiqs3-urbiqs0 (bit 3-bit 0): alloca te interrupt resource for uart b.
w83877tf/w83877tg -94 - 11.2.33 configuration register 29 (cr29) when the device is in extended function mode and ef ir is 29, the cr29 register can be accessed through efdr. default = 62h if cr6 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 iqniqs0 iqniqs1 iqniqs2 iqniqs3 fdciqs0 fdciqs1 fdciqs2 fdciqs3 fdciqs3-fdciqs0 (bit 7-bit 4): allo cate interrupt resource for fdc. iqniqs3-iqniqs0 (bit 3-bit 0): alloca te interrupt resource for irqin. 11.2.34 configuration register 2c (cr2c), default=00h when the device is in extended function mode and efir is 2ch, the cr2c register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved reserved clkinsel reserved reserved reserved reserved reserved bit 7 - bit 3 : reserved. clkinsel (bit 2): clock input frequency selection. this pin should be reset/set according the clkin pin. 0 the clock source on clkin pin is 24 mhz.(default) 1 the clock source on clkin pin is 48 mhz. bit 1- bit 0: reserved.
w83877tf/w83877tg publication release date: may 2006 -95- revision 0.7 11.2.35 configuration register 2d (cr2d), default=00h when the device is in extended function mode and efir is 2dh, the cr2d register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 drta0 drta1 dis_precomp0 drtb0 drtb1 dis_precomp1 reserved reserved this register controls the data rate selection for fdc. it also controls if precompensation is enabled. bit 7 - bit 6: reserved. dis_precomp1 (bit 5): this bit controls if precompensation is enabled for fdd b. 0 enable precompensation for fdd b 1 disable precompensation for fdd b drtb1, drtb0 (bit 4,3): these two bits combining with data rate selection bits in date rate register select the operational data rate for fdd b as shown in last table. dis_precomp0 (bit 2): this bit controls if precompensation is enabled for fdd a. 0 enable precompensation for fdd a 1 disable precompensation for fdd a drta1, drta0 (bit 1 - bit 0): these two bits combining with data rate selection bits in date rate register select the operational data rate for fdd a as follows:
w83877tf/w83877tg -96 - drive rate table data rate operational data rate drta1 drta0 drate1 drate0 mfm fm 0 0 1 1 1m --- 0 0 0 0 500k 250k 0 0 0 1 300k 150k 0 0 1 0 250k 125k 0 1 1 1 1m --- 0 1 0 0 500k 250k 0 1 0 1 500k 250k 0 1 1 0 250k 125k 1 0 1 1 1m --- 1 0 0 0 500k 250k 1 0 0 1 2m --- 1 0 1 0 250k 125k 11.2.36 configuration register 31 (cr31), default=00h when the device is in extended function mode and ef ir is 31h, the cr31 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved reserved irqmods reserved sciirq0 sciirq1 sciirq2 sciirq3 sciirq3 ~ sciirq0 (bit 7 - bit 4): the four bits select one irq pin for the sci signal except for dedicated sci signal output pin. any unselected pin is in tri-state.
w83877tf/w83877tg publication release date: may 2006 -97- revision 0.7 cr31[7:4] mapped irq pin 0000 none (default) 0001 irq_a 0010 irq_b 0011 irq_c 0100 irq_d 0101 irq_e 0110 irq_f 0111 irq_g 1000 irq_h while in the serial irq mode (irqmods=1, cr31 bit 2), the above selection is invalid and all the irq signal pins, from irq_a to irq_h, are all in tr i-state. the sci interrupt output is dedicated to the serirq pin. for the host controller to correctly sa mple the sci interrupt, the sci interrupt should be programmed to appear in one of irq/data frame sampling periods. in serial irq mode, the definition of sciiq s3-sciiqs0 (bit 7-bit 4) is as follows: sciiqs3-sciiqs0 (bit 7-bit 4): select the irq/data sampling period on the serirq pin. cr27[7:4] irq/data frame period 0000 none 0001 irq1 0010 reserved for smi 0011 irq3 0100 irq4 0101 irq5 0110 irq6 0111 irq7 1000 irq8 1001 irq9 1010 irq10 1011 irq11 1100 irq12 1101 irq13 1110 irq14 1111 irq15 bit 3: reserved.
w83877tf/w83877tg -98 - irqmods (bit 2): irq mode selection. w83877tf/tg supports: (1) legac y isa irq mode or isa irq sharing mode. (2) serial irq mode used in the pci bus. in the legac y isa irq sharing mode, the selected irq pin for the device's irq is defined in the configuration r egisters cr27 - cr29. in the isa irq sharing mode, configuration register cr18 indicates whic h irq pin is in the irq sharing mode. 0: legacy isa irq mode or isa irq sharing mode.(default) 1: serial irq mode used in pci bus. bit 1 - bit 0: reserved. 11.2.37 configuration register 32 (cr32), default=00h when the device is in extended function mode and ef ir is 32h, the cr32 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbpme urapme fdcpme prtpme reserved reserved reserved chippme chippme (bit 7): w83877tf/tg chip power management enable. 0 disable the ac pi/legacy and the auto power management functions. 1 enable the acpi/legacy and the auto power management functions. bit 6 - bit 4: reserved. prtpme (bit 3): printer port power management enable. 0 disable the auto power management function. 1 enable the auto power management function, if this bit and chippme(cr32 bit 7) are both set to 1. . fdcpme (bit 2): fdc power management enable. 0 disable the auto power management function. 1 enable the auto power management function, if this bit and chippme(cr32 bit 7) are both set to 1. .
w83877tf/w83877tg publication release date: may 2006 -99- revision 0.7 urapme (bit 1): uart a power management enable. 0 disable and the auto power management function. 1 enable auto power management function, if this bit and chippme(cr32 bit 7) are both set to 1. . urbpme (bit 0): uart b power management enable. 0 disable the auto power management functions. 1 enable the auto power management function, if this bit and chippme(cr32 bit 7) are both set to 1. 11.2.38 configuration register 33 (cr33), default=00h when the device is in extended function mode and ef ir is 33h, the cr33 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved reserved pm1ad2 pm1ad3 pm1ad4 pm1ad5 pm1ad6 pm1ad7 pm1ad7 - pm1ad2 (bit 7 - bit 2): base addre ss of the power management register block pm1. this address is the base address of pm1a_evt_blk in the acpi specification. the based address should range from 01,0000,0000 b to 11,1111,0000 b ,i.e., 100h ~ 3f0h, where bit 1 and bit 0 of the base address should be set to 0 and the based address is in the 16-byte alignment. note that the based address of pm1a_cnt_blk is equal to pm1a_ evt_blk + 4, and pm_tmr_blk is equal to pm1a_evt_blk + 8. bit 1 - bit 0: reserved, fixed at 0. 11.2.39 configuration register 34 (cr34), default=00h when the device is in extended function mode and ef ir is 34h, the cr34 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved gpead1 gpead2 gpead3 gpead4 gpead5 gpead6 gpead7
w83877tf/w83877tg -100 - gpead7 - gpead1 (bit7 - bit 1): base address of the power management register block gpe. this address is the base address of gpe0_blk in the acpi specification. the based address should range from 01,0000,0000 b to 11,1111,1000 b ,i.e., 100h ~ 3f8h, where bit 0 of the base address should be set to 0 and the based address is in the 8-byte alignment. note that the base address of gpe1_blk is gpe0_blk + 4. bit 0: reserved, fixed at 0. 11.2.40 configuration register 35 (cr35), default=00h when the device is in extended function mode and ef ir is 35h, the cr35 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 uracnt0 uracnt1 uracnt2 uracnt3 uracnt4 uracnt5 uracnt6 uracnt7 uracnt7 - uracnt0 (bit 7 - bit 0): uart a idle timer count. this register is used to specify the initial value of uart a idle timer. once uart a enters the working state (that is, after any access to this dev ice, any irq, and any external input), the power down machine of uart a reloads this count value and the idle timer counts down. when the timer counts down to zero, uart a enters the power down stat e ,i.e., sleeping state. if this register is set to 00h, the power down function will be invalid. the time resolution of this value is minute or second, which is defined by the tmin_sel bit of the cr3a. no te that (1). this register is valid only when the power management function of uart a is enabl ed, that is, chippme=1 (cr32 bit 7) and urapme=1 (cr32 bit 1), (2). if the register is se t to 00h, uart a will remain in the current state(working or sleeping). 11.2.41 configuration register 36 (cr36), default=00h when the device is in extended function mode and ef ir is 36h, the cr36 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbcnt0 urbcnt1 urbcnt2 urbcnt3 urbcnt4 urbcnt5 urbcnt6 urbcnt7
w83877tf/w83877tg publication release date: may 2006 -101- revision 0.7 urbcnt7 - urbcnt0 (bit 7 - bit 0): uart b idle timer count. this register is used to specify the initial value of uart b idle timer. once uart b enters the working state (that is, after any access to this device, any irq, and any external input), the power down machine of uart b reloads this count value and the idle timer counts down. when the timer counts down to zero, uart b enters the power down state ,i.e ., sleeping state. if this register is set to 00h, the power down function will be invalid. the time resolu tion of this value is minute or second, which is defined by the tmin_sel bit of cr3a. note that (1). this register is valid only when the power management function of uart b is enabled, t hat is, chippme=1 (cr32 bit 7) and urbpme=1 (cr32 bit 0), (2). if the register is set to 00h, ua rt b will remain in the current state(working or sleeping). 11.2.42 configuration register 37 (cr37), default=00h when the device is in extended function mode and ef ir is 37h, the cr37 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 fdccnt0 fdccnt1 fdccnt2 fdccnt3 fdccnt4 fdccnt5 fdccnt6 fdccnt7 fdccnt7 - fdccnt0 (bit 7 - bit 0): fdc idle timer count. this register is used to specify the initial value of fdc idle timer. once fdc enters the working state (that is, after any access to this device, any irq, and any external input), the power down machine of fdc reloads this count value and the idle timer counts down. when the timer counts down to zero, fdc enters the power down state ,i.e., sleeping state. if this register is set to 00h, the power down function will be invalid. the time resolution of this value is minute or second, which is defined by the tmin_sel bit of the cr3a. note that (1). this register is valid only when the power management function of fdc is enabled, that is, chippme=1 (cr 32 bit 7) and fdcpme=1 (cr32 bit 2), (2). if the register is set to 00h, fdc will remain in the current state(working or sleeping). 11.2.43 configuration register 38 (cr38), default=00h when the device is in extended function mode and ef ir is 38h, the cr38 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 prtcnt0 prtcnt1 prtcnt2 prtcnt3 prtcnt4 prtcnt5 prtcnt6 prtcnt7
w83877tf/w83877tg -102 - prtcnt7 - prtcnt0 (bit 7 - bit 0): printer port idle timer count. this register is used to specify the initial value of the printer port idle timer. once the printer port enters the working state (that is, after any access to this device, any irq, and any external input), the power down machine of the printer port reloads th is count value and this idle timer counts down. when the timer counts down to zero, printer port ent ers the power down state ,i.e., sleeping state. if this register is set to 00h, the power down function will be invalid. the time resolution of this value is minute or second, which is defined by the tmin_sel bit of cr3a. note that (1). this register is valid only when the power management function of the pr inter port is enabled, that is, chippme=1 (cr32 bit 7) and prtpme=1 (cr32 bit 3), (2). if the register is set to 00h, the printer port will remain in the current state(working or sleeping). 11.2.44 configuration register (cr39), default=00h when the device is in extended function mode and ef ir is 39h, the cr39 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 gsbcnt0 gsbcnt1 gsbcnt2 gsbcnt3 gsbcnt4 gsbcnt5 gsbcnt6 gsbcnt7 gsbcnt7 - gsbcnt0 (bit 7 - bit 0): global stand-by idle timer count. once all devices of the chip (including uart a, uart b, fdc and the printer port) are in the power down state, the power down machine of w83877tf/ tg chip loads this register value and counts down. when the timer counts to zero, the whole chip enters the power down state, i.e., sleeping state. if this register is set to 0, the power down function will be invalid. the time resolution of this register value is minute or second, which is defined by the tmin _sel bit of cr3a. note that (1). this register is valid when the chippme = 1 (cr32 bit 7), and (2) if the register is set to 00h, w83877tf/tg chip will remain in the current state(working or sleeping). 11.2.45 configuration register 3a (cr3a), default=00h when the device is in extended function mode and efir is 3ah, the cr3a register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 upullen smi_en reserved reserved reserved tmin_sel reserved reserved bit 7 - bit 6 : reserved, fixed at 0.
w83877tf/w83877tg publication release date: may 2006 -103- revision 0.7 tmin_sel (bit 5): time resolution of the auto power machines of all devices. cr35 to cr39 store the initial counts of the devices. 0 one second 1 one minute bit 4 - bit 2: reserved, fixed at 0. smi_en (bit 1): smi output pin enable. while an smi event is raised on the output of the smi logic, this bit determines whether the smi interrupt will be generated on the smi output smi pin and on the serial irq irqser pin while in serial irq mode. 0 disable 1 enable upullen (bit 0): enable the pull up of irqser pin in serial irq mode. 0 disable the pull up of irqser pin. 1 enable the pull up of irqser pin. 11.2.46 configuration register 3b (cr3b), default=00h reserved for testing. should be kept all 0's. 11.2.47 configuration register 40 (cr40), default=00h when the device is in extended function mode and ef ir is 40h, the cr40 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbidlsts uraidlsts fdcidlsts prtidlsts reserved reserved reserved reserved bit 7 - bit 4 : reserved, fixed at 0. bit 3 - bit 0 : devices' idle status. these bits indicate that the individual device's idle timer expires due to no i/o access, irq, and external input to the device respectively. these 4 bi ts are controlled by the printer port, fdc, uart a, and uart b power down machines individually . the bits are set/cleared by w83877tf/tg automatically. writing a 1 can also clear this bit, and writing a 0 has no effect.
w83877tf/w83877tg -104 - prtidlsts (bit 3): printer port idle status. 0 printer port is now in the working state. 1 printer port is now in the sleeping state due to no printer port access, irq, dma acknowledge, and no transition on busy, ac k , pe, slct, and err pins. fdcidlsts (bit 2): fdc idle status. 0 fdc is now in the working state. 1 fdc is now in the sleeping state due to no fdc access, no irq, no dma acknowledge, and no enabling of the motor enable bits in the dor register. uraidlsts (bit 1): uart a idle status. 0 uart a is now in the working state. 1 uart a is now in the sleeping state due to no uart a access, no irq, the receiver is now waiting for a start bit, t he transmitter shift register is now empty, and no transition on modem control input lines. urbidlsts (bit 0): uart b idle status. 0 uart b is now in the working state. 1 uart b is now in the sleeping state due to no uart b access, no irq, the receiver is now waiting for a start bit, t he transmitter shift register is now empty, and no transition on modem control input lines. 11.2.48 configuration register 41 (cr41), default=00h when the device is in extended function mode and ef ir is 41h, the cr41 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbtrapsts uratrapsts fdctrapsts prttrapsts reserved reserved reserved reserved bit 7 - bit 4 : reserved, fixed at 0. bit 3 - bit 0 : devices' trap status. these bits indicate that the individual device wake s up due to any i/o access, irq, and external input to the device respectively. the device's idle time r reloads the initial count value from cr35-cr39, depending on which device wakes up. these 4 bits are controlled by the printer port, fdc, uart a, and uart b power down machines individually . the bits are set/cleared by w83877tf/tg automatically. writing a 1 can also clear this bit, and writing a 0 has no effect.
w83877tf/w83877tg publication release date: may 2006 -105- revision 0.7 prttrapsts (bit 3): printer port trap status. 0 the printer port is now in the sleeping state. 1 the printer port is now in the working state due to any printer port access, any irq, any dma acknowledge, and any transition on busy, ac k , pe, slct, and err pins. fdctrapsts (bit 2): fdc trap status. 0 fdc is now in the sleeping state. 1 fdc is now in the work ing state due to any fdc access, any irq, any dma acknowledge, and any enabling of the motor enable bits in the dor register. uratrapsts (bit 1): uart a trap status. 0 uart a is now in the sleeping state. 1 uart a is now in the wo rking state due to any uart a access, any irq, the receiver begins receiving a start bit, the transmitter shift register begins transmitting a start bit, and any transit ion on modem control input lines. urbtrapsts (bit 0): uart b trap status. 0 uart b is now in the sleeping state. 1 uart b is now in the wo rking state due to any uart b access, any irq, the receiver begins receiving a start bit, the transmitter shift register begins transmitting a start bit, and any trans ition on modem control input lines. 11.2.49 configuration register 42 (cr42), default=n/a when the device is in extended function mode and ef ir is 42h, the cr42 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbirqsts urairqsts fdcirqsts prtirqsts reserved reserved reserved reserved bit 7 - bit 4 : reserved, fixed at 0. bit 3 - bit 0 : device's irq status . these bits indicate the irq pin status of the indi vidual device respectively. the device's irq status bit is set or cleared at their source dev ice, writing a 1 or 0 has no effect.
w83877tf/w83877tg -106 - prtirqsts (bit 3) : printer port irq status. while the irq type of printer port is edge trigger-type, this bit will set and reset immediately. as the softw are reads this bit, it indicates low level. the software must read the irq status bit in the printer port device register to correctly identify whether the printer port irq occurs. fdcirqsts (bit 2) : fdc irq status. urairqsts (bit 1) : uart a irq status. urbirqsts (bit 0) : uart b irq status. 11.2.50 configuration register 43 (cr43), default=00h when the device is in extended function mode and ef ir is 43h, the cr43 register can be accessed through efdr. this register is reserved. 11.2.51 configuration register 44 (cr44), default=00h when the device is in extended function mode and ef ir is 44h, the cr44 register can be accessed through efdr. this register is reserved. 11.2.52 configuration register 45 (cr45), default=00h when the device is in extended function mode and ef ir is 45h, the cr45 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbirqen urairqen fdcirqen prtirqen reserved reserved reserved reserved bit 7 - bit 4 : reserved, fixed at 0. bit 3 - bit 0 : enable bits of the smi generation due to the device's irq. these bits enable the generation of an smi interrupt due to any irq of the devices respectively. these 4 bits control the printer port, fdc, uart a, and uart b smi logic's individually. the smi logic output for the irqs is as follows: smi logic output = (urbirqen and urbirqsts) or (urairqen and urairqsts) or (fdcirqen and fdcirqsts) or (prtirqen and prtirqsts) if any device's irq is raised, the corresponding irq st atus bit in cr42 is set. if the device's enable bit is set and smi_en(in cr3a) and chippme(in cr32) is both set, then smi interrupt occurs on the smi output pin. prtirqen (bit 3): 0 disable the generation of an smi interrupt due to the printer port's irq. 1 enable the generation of an smi interrupt due to the printer port's irq.
w83877tf/w83877tg publication release date: may 2006 -107- revision 0.7 fdcirqen (bit 2): 0 disable the generation of an smi interrupt due to the fdc's irq. 1 enable the generation of an smi interrupt due to the fdc's irq. urairqen (bit 1): 0 disable the generation of an smi interrupt due to the uart a's irq. 1 enable the generation of an smi interrupt due to the uart a's irq. urbirqen (bit 0): 0 disable the generation of an smi interrupt due to the uart b's irq. 1 enable the generation of an smi interrupt due to the uart b's irq. 11.2.53 bit map configuration registers table 11-1: bit map of configuration registers register power-on reset value d7 d6 d5 d4 d3 d2 d1 d0 cr0 0000 0000 0 0 0 0 prtmods1 prtmods0 0 ipd cr1 0000 0000 abchg 0 0 0 0 0 0 0 cr2 0000 0000 0 0 0 0 0 0 0 0 cr3 0011 0000 0 0 eppver 0 0 0 suamidi submidi cr4 0000 0000 prtpwd 0 urapwd urbpwd prttri 0 uratri urbtri cr5 0000 0000 0 0 0 0 ecpfthr3 ecpfthr2 ecpfthr1 ecpfthr0 cr6 0000 0000 0 0 sel4fdd fipurdwn fdcpwd 0 fdctri 0 cr7 0000 0000 fdd d t1 fdd d t0 fdd c t1 fdd c t0 fdd b t1 fdd b t0 fdd a t1 fdd a t0 cr8 0000 0000 0 0 disfddwr swwp media 1 media 0 boot 1 boot 0 cr9 0000 1010 prtmods2 lockreg en3mode 0 chip id 3 chip id 2 chip id 1 chip id 0 cra 0000 0000 0 0 0 0 0 0 0 0 crb 0000 1100 0 tx4wc rx4wc enifchg ident mfm invertz drv2en crc 0010 1000 tura turb hefere 0 urirsel 0 rx2inv tx2inv crd 1010 0011 sirtx1 sirtx0 sirrx1 sirrx0 hduplx irmode2 irmode1 irmode0 cr10 0000 0000 gio0ad7 gio0ad6 gio0ad5 gi o0ad4 gio0ad3 gio0ad2 gio0ad1 gio0ad0 cr11 0000 0000 g0cadm1 g0cadm0 0 0 0 gio0ad10 gio0ad9 gio0ad8 cr12 0000 0000 gio1ad7 gio1ad6 gio1ad5 gi o1ad4 gio1ad3 gio1ad2 gio1ad1 gio1ad0 cr13 0000 0000 g1cadm1 g1cadm0 0 0 0 gio1ad10 gio1ad9 gio1ad8 cr14 0000 0000 giop0md2 giop0md1 giop0md0 gi o0csh gcs0ior gcs0iow gda0opi gda0ipi cr15 0000 0000 giop1md2 giop1md1 giop1md0 gi o1csh gcs1ior gcs1iow gda1opi gda1ipi cr16 00ss 0s0s 1 0 0 g1iqsel g0iqsel 0 pnpcvs 0 hefras cr17 0000 0000 0 0 0 prirqod dsfdlgrq dsprlgrq dsualgrq dsublgrq cr18 0000 0000 sharh sharg sharf sh are shard sharc sharb shara cr19 0000 0000 0 0 0 0 0 0 fasta fastb cr20 1111 1100 2 fdcad7 fdcad6 fdcad5 fdca d4 fdcad3 fdcad2 0 0 cr23 1101 1110 2 prtad7 prtad6 prtad5 prtad4 prtad3 prtad2 prtad1 prtad0 cr24 1111 1110 2 uraad7 uraad6 uraad5 uraad 4 uraad3 uraad2 uraad1 0 cr25 1011 1110 2 urbad7 urbad6 urbad5 urbad 4 urbad3 urbad2 urbad1 0 cr26 0010 0011 2 fdcdqs3 fdcdqs2 fdcdqs1 fdcdqs0 prtd qs3 prtdqs2 prtdqs1 prtdqs0
w83877tf/w83877tg -108 - bit map configuration registers, continued register power-on reset value d7 d6 d5 d4 d3 d2 d1 d0 cr27 0000 0101 2 ecpirqx2 ecpirqx1 ecpirqx0 0 pr tiqs3 prtiqs2 prtiqs1 prtiqs0 cr28 0100 0011 2 uraiqs3 uraiqs2 uraiqs1 uraiqs0 urbiqs3 urbiqs2 urbiqs1 urbiqs0 cr29 0110 0000 2 fdciqs3 fdciqs2 fdciqs1 fdciqs0 iqniqs3 iqniqs2 iqniqs1 iqniqs0 cr2c 0000 0000 0 0 0 0 0 clkinsel 0 0 cr2d 0000 0000 0 0 dis- precom1 drtb 1 drtb 0 dis- precom0 drta 1 drta 0 cr31 0000 0s00 sciirq3 sc iirq2 sciirq1 sciirq0 0 irqmods 0 0 cr32 0000 0000 chippme 0 0 0 prtpme fdcpme urapme urbpme cr33 0000 0000 pm1ad7 pm1ad6 pm1ad5 pm1ad4 pm1ad3 pm1ad2 0 0 cr34 0000 0000 gpead7 gpead6 gpead5 gpead4 gpead3 gpead2 gpead1 0 cr35 0000 0000 uracnt7 uracnt6 uracnt5 uracnt4 uracnt3 uracnt2 uracnt1 uracnt0 cr36 0000 0000 urbcnt7 urbcnt6 urbcnt5 urbcnt4 urbcnt3 urbcnt2 urbcnt1 urbcnt0 cr37 0000 0000 fdccnt7 fdccnt6 fdccnt5 fdccnt4 fdccnt3 fdccnt2 fdccnt1 fdccnt0 cr38 0000 0000 prtcnt7 prtcnt6 prtcnt5 prt cnt4 prtcnt3 prtcnt2 prtcnt1 prtcnt0 cr39 0000 0000 gsbcnt7 gsbcnt6 gsbcnt5 gsbcnt4 gsbcnt3 gsbcnt2 gsbcnt1 gsbcnt0 cr3a 0000 0000 0 0 tmin_sel 0 0 0 smi_en upullen cr40 0000 0000 0 0 0 0 prtidlsts fdcidlsts uraidlsts urbidlsts cr41 0000 0000 0 0 0 0 prttraps ts fdctraps ts uratraps ts urbtraps ts cr42 0000 0000 0 0 0 0 prtirqsts fdcirqsts urairqsts urbirqsts cr43 0000 0000 0 0 0 0 0 0 0 0 cr44 0000 0000 0 0 0 0 0 0 0 0 cr45 0000 0000 0 0 0 0 prtirqen fdcirqen urairqen urbirqen notes: 1. 's' means its value depends on corresponding power-on setting pin. 2. these default values are valid when cr16 bit 2 is 1 duri ng power-on reset; they will be all 0's if cr16 bit 2 is 0.
w83877tf/w83877tg publication release date: may 2006 -109- revision 0.7 11.3 acpi registers features w83877tf/tg supports both the acpi and legacy pow er management's. the switch logic of the power management block generates an smi interrupt in the legacy mode and an sci interrupt in the acpi mode. for the legacy mode, the smi_en bit is used. if it is set, it routes the power management events from the smi interrupt logic to the smi output pin. for the acpi mode, the sci_en bit is used. if it is set, it route the power management events to t he sci interrupt logic. the smi_en bit is located in the cr3a register and the sci_en bit is located in the pm1 register block. see the following figure for illustration. pm timer device idle timers device trap timer smi logic smi_en smi output logic sci output logic sleep/wake state machine wak_sts clock control sci smi sci logic global stby sci events 0 1 sci_en smi events irqs irqs irqs the smi interrupt is routed to pin smi , which is dedicated for the smi interrupt output. another way to output the smi interrupt is to route to pin irqser, which is the signal pin in the serial irq mode. the sci interrupt is routed to pin sci , which is dedicated for the sci function. the other way to output the sci interrupt is to route to one interrupt reques t signal pin irqa~h, which is selected through cr31 bit[7:4]. another way is output the sci in terrupt is to route to pin irqser.
w83877tf/w83877tg -110 - smi to sci/sci to smi and bus master for the process of generating an interrupt from smi to sci or from sci to smi, see the following figure for illustration. bios_rls gbl_en from sci to smi gbl_rls bios_en bus master sci bm_cntpl bm_rld clear set bm_sts to sci logic to smi logic to sci logic from smi to sci clear set clear set gbl_sts bios_sts : status bit : enable bit for the bios software to raise an event to t he acpi software, bios_r ls, gbl_en, and gbl_sts bits are involved. gbl_en is the enable bit and the gb l_sts is the status bit. both are controlled by the acpi software. if bios_rls is set by t he bios software and gbl_en is set by the acpi software, an sci interrupt is raised. writing a 1 to bios_rls sets it to logic 1 and also sets gbl_sts to logic 1; writing a 0 to bios_rls has no effect. writing a 1 to gbl_sts clears it to logic 0 and also clears bios_rls to logic 0; writing a 0 to gbl_sts has no effect. for the acpi software to raise an event to the bios software, gbl_rls, bios_en, and bios_sts bits are involved. bios_en is the enable bit and the bios_sts is the status bit. both are controlled by the bios software. if gbl_rls is set by t he acpi software and bios_en is set by the bios software, an smi is raised. writing a 1 to gbl_rls se ts it to logic 1 and also sets bios_sts to logic 1; writing a 0 to gbl_rls has no effect. writing a 1 to bios_sts clears it to logic 0 and also clears gbl_rls to logic 0; writing a 0 to bios_sts has no effect. for the bus master to raise an event to the ac pi software, bm_cntrl, bm_rld, and bm_sts bits are involved. both bm_rld and bm_sts are contro lled by the acpi software. if bm_cntrl is set by the bios software and bm_rld is set by the acpi software, an sci interrupt is raised. writing a 1 to bm_cntrl sets it to logic 1 and also sets bm _sts to logic 1; writing a 0 to bm_cntrl has no effect. writing a 1 to bm_sts clears it to logic 0 and also clears bm_cntrl to logic 0; writing a 0 to bm_sts has no effect.
w83877tf/w83877tg publication release date: may 2006 -111- revision 0.7 power management timer in the acpi specification, it requires a power management timer. the power management timer is a 24-bit fixed rate free running count-up timer t hat runs off a 3.579545mhz clock. the power management timer has the corresponding status bit (tmr_sts) and enable bit (tmr_en). the tmr_sts bit is set any time the last bit of the time r (bit 23) goes from 0 to 1 or from 1 to 0. if the tmr_en bit is set, the setting of the tmr_sts bi t will generate an sci interrupt. three registers are used to read the timer value, they are located in the pm1 register block. the power management timer has one enable bit (tmr_on) to turn if on or off. the tm r_on is located in gpe register block. if it is cleared to 0, the power management timer function would not work. there are no timer reset requirements, except that the timer should func tion after power-up. see the following figure for illustration. to sci logic 24 bit counter bits (23-0) tmr_sts tmr_en tmr_on 3.579545 mhz 24 tmr_val 11.4 acpi registers (acpirs) the acpi register model consists of the fixed r egister blocks that perform the acpi functions. a register block may be a event register block which deals with acpi events or a control register block which deals with control features. the ordering in t he event register block is the status register, followed by the enable register. each event register, if implemented, contains two two register: a status register and an enable register, both in 16-bit size. the status regist er indicates what defined function needs the acpi system control interrupt (sci). while the hardware event occurs, the defined status bit is set. however, to generate the sci, the associated enable bit is required to be set. if the enable bit is not set, the software can examine the state of the har dware event by reading the status bit without generating an sci interrupt. any status bit, unless otherwise noted, can only be set by some defined hardware event. it is cleared by writing a 1 to its bit position and writing a 0 has no effect. except for some s pecial status bits, every status bit has an associated enable bit in the same bi t position in the enable register. those status bits which have no respective enable bit are read fo r special purposes. revered or un-implemented enable bits always return zero, and writi ng to these bits should have no effect. the control bit in the control register provides so me special control functions over the hardware event, or some special control over sci event. reversed or un-implemented control bits always return zero, and writing to those bits should have no effect. table 11-4 lists the pm1 register block and the relati ve locations of the registers within it. the base address of pm1 register block is named as pm1a_ evt_blk in the acpi specification. the based address should range from 01,0000,0000 b to 11,1111,0000 b ,i.e., 100h ~ 3f0h, where bit 1 and bit 0 of pm1 register block should be set to 0 and the based address is in the 16-byte alignment. table 11-5 lists the gpe register block and the relati ve locations within it. the base address of power management event block gpe is named as gpe0_blk in the acpi specification. the based address should range from 01,0000,0000 b to 11,1111,1000 b ,i.e., 100h ~ 3f8h, where bit 0 of the base address should be set to 0 and the base address is in the 8-byte alignment.
w83877tf/w83877tg -112 - 11.4.1 power management 1 status register 1 (pm1sts1) register location: system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 tmr_sts reserved reserved reserved bm_sts gbl_sts reserved reserved bit name description 0 tmr_sts this bit is the timer carry status bit. this bit gets set anytime the bit 23 of the 24-bit counter changes(whenever the msb changes from low to high or high to low). while tmr_en and tmr_sts are set a power magnet event is raised. this bit is only set by hardware and can only be cleared by the software writing a 1 to this bit pos ition. writing a 0 has no effect. 1-3 reserved reserved. 4 bm_sts this is the bus master status bit. writing a 1 to bm_cntrl also sets bm_sts. writing a 1 clears this bit and also clears bm_cntrl. writing a 0 has no effect. 5 gbl_sts this is the global status bit. this bit is set when the bios want the attention of the sci handler. bios sets this bit by setting bios_rls and can only be cleared by software writing a 1 to this bit position. writing a 1 to this bit position also clears bios_rls. writing a 0 has no effect. 6-7 reserved reserved. these bits always return a value of zero. 11.4.2 power management 1 status register 2 (pm1sts2) register location: +1h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved wak_sts
w83877tf/w83877tg publication release date: may 2006 -113- revision 0.7 bit name description 0-6 reserved reserved. 7 wak_sts this bit is set when the system is in the sleeping state and an enabled resume event occurs. upon setting this bit, the sleeping/working state machine will transition the system to the working state. this bit is only set by hardware and is cleared by software writing a 1 to this bit position or by the sleeping/working state machine automat ically upon the global standby timer expires. writing a 0 has no effect. once the wak_sts is cleared and all devices have been in sleeping state, the whole chip enters the sleeping state. 11.4.3 power management 1 enable register 1(pm1en1) register location: +2h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 tmr_en reserved reserved reserved gbl_en reserved reserved reserved bit name description 0 tmr_en this is the timer carry interrupt enable bit. when this bit is set then an sci event is generated anytime the tmr_sts bit is set. when this bit is reset then no interrupt is generated when the tmr_sts bit is set. 1-4 reserved reserved. these bits always return a value of zero. 5 gbl_en the global enable bit. when both t he gbl_en bit and the gbl_sts bit are set, an sci interrupt is raised. 6-7 reserved reserved. 11.4.4 power management 1 enable register 2 (pm1en2) register location: +3h system i/o space default value: 00h attribute: read/write size: 8 bits
w83877tf/w83877tg -114 - 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0-7 reserved reserved. these bits always return a value of zero. 11.4.5 power management 1 control register 1 (pm1ctl1) register location: +4h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 sci_en bm_rld gbl_rld reserved reserved reserved reserved reserved bit name description 0 sci_en selects the power management event to be either an sci or an smi interrupt. when this bit is set, then the power management events will generate an sci interrupt. when this bit is reset and smi_en bit is set, then the power management events will generate an smi interrupt. 1 bm_rld this is the bus master reload enabl e bit. if this bit is set and bm_cntrl is set, an sci interrupt is raised. 2 gbl_rls the global release bit. this bit is used by the acpi software to raise an event to the bios software. the bios software has a corresponding enable and status bit to control its ability to receive the acpi event. setting gbl_rls sets bios_sts, and it generates an smi interrupt if bios_en is also set. 3-7 reserved reserved. these bits always return a value of zero.
w83877tf/w83877tg publication release date: may 2006 -115- revision 0.7 11.4.6 power management 1 control register 2 (pm1ctl2) register location: +5h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0-7 reserved reserved. these bits always return a value of zero. 11.4.7 power management 1 control register 3 (pm1ctl3) register location: +6h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0-7 reserved reserved. these bits always return a value of zero.
w83877tf/w83877tg -116 - 11.4.8 power management 1 control register 4 (pm1ctl4) register location: +7h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0-7 reserved reserved. these bits always return a value of zero. 11.4.9 power management 1 timer 1 (pm1tmr1) register location: +8h system i/o space default value: 00h attribute: read only size: 8 bits 1 2 3 4 5 6 7 0 tmr_val0 tmr_val1 tmr_val2 tmr_val3 tmr_val4 tmr_val5 tmr_val6 tmr_val7 bit name description 0-7 tmr_val this read-only field returns the running count of the power management timer. this is a 24-bit counter that runs off of a 3.579545 mhz clock, and counts while in the system working state. the timer is reset and then continues counting until the clkin input the the chip is stopped. if the clock is restarted without a mr reset, then the counter will continue counting from where it stopped. the tmr_sts bit is set any time the last bit of the timer (bit 23) goes from 0 to 1 or from 1 to 0. if the tmr_en bit is set, the setting of the tmr_sts bit will generate an sci interrupt.
w83877tf/w83877tg publication release date: may 2006 -117- revision 0.7 11.4.10 power management 1 timer 2 (pm1tmr2) register location: +9h system i/o space default value: 00h attribute: read only size: 8 bits 1 2 3 4 5 6 7 0 tmr_val8 tmr_val9 tmr_val10 tmr_val11 tmr_val12 tmr_val13 tmr_val14 tmr_val15 bit name description 0-7 tmr_val this read-only field returns the running count of the power management timer. this is a 24-bit counter that runs off of a 3.579545 mhz clock, and counts while in the system working state. the timer is reset and then continues counting until the clkin input the the chip is stopped. if the clock is restarted without a mr reset, then the counter will continue counting from where it stopped. the tmr_sts bit is set any time the last bit of the timer (bit 23) goes from 0 to 1 or from 1 to 0. if the tmr_en bit is set, the setting of the tmr_sts bit will generate an sci interrupt. 11.4.11 power management 1 timer 3 (pm1tmr3) register location: +ah system i/o space default value: 00h attribute: read only size: 8 bits 1 2 3 4 5 6 7 0 tmr_val16 tmr_val17 tmr_val18 tmr_val19 tmr_val20 tmr_val21 tmr_val22 tmr_val23
w83877tf/w83877tg -118 - bit name description 0-7 tmr_val this read-only field returns the running count of the power management timer. this is a 24-bit counter that runs off of a 3.579545 mhz clock, and counts while in the system working state. the timer is reset and then continues counting until the clkin input the the chip is stopped. if the clock is restarted without a mr reset, then the counter will continue counting from where it stopped. the tmr_sts bit is set any time the last bit of the timer (bit 23) goes from 0 to 1 or from 1 to 0. if the tmr_en bit is set, the setting of the tmr_sts bit will generate an sci interrupt. 11.4.12 power management 1 timer 4 (pm1tmr4) register location: +bh system i/o space default value: 00h attribute: read only size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0-7 reserved reserved. these bits always return a value of zero. 11.4.13 general purpose event 0 status register 1 (gp0sts1) register location: system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 urbscists urascists fdcscists prtscists reserved reserved reserved reserved
w83877tf/w83877tg publication release date: may 2006 -119- revision 0.7 these bits indicate the status of the sci input, which is set when the device's irq is raised. if the corresponding enable bit in the sci interrupt enable register (in gp0en1) is set, an sci interrupt is raised and routed to the output pin. writing a 1 clear s the bit, and writing a 0 has no effect. if the bit is not cleared, new irq for the sci logic input is ignored, therefore no sci interrupt is raised. bit name description 0 urbscists uart b sci status, wh ich is set by the uart b irq. 1 urascists uart a sci status, wh ich is set by the uart a irq. 2 fdcscists fdc sci status, which is set by the fdc irq. 3 prtscists prt sci status, which is set by the printer port irq. 4-7 reserved reserved. 11.4.14 general purpose event 0 status register 2 (gp0sts2) register location: +1h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0-7 reserved reserved. these bits always return a value of zero. 11.4.15 general purpose event 0 enable register 1 (gp0en1) register location: +2h system i/o space default value: 00h attribute: read/write size: 8 bits
w83877tf/w83877tg -120 - 1 2 3 4 5 6 7 0 urbscien urascien fdcscien prtscien reserved reserved reserved reserved these bits are used to enable the device's irq sour ces onto the sci logic. the sci logic output for the irqs is as follows: sci logic output = (urbscien and urbscists) or (urascien and urascists) or (fdcscien and fdcscists) or (prtscien and prtscists) bit name description 0 urbscien uart b sci enable, which controls the uart b irq for sci. 1 urascien uart a sci enable, which controls the uart a irq for sci. 2 fdcscien fdc sci enable, which controls the fdc irq for sci. 3 prtscien printer port sci enable, which controls the printer port irq for sci. 4-7 reserved reserved. 11.4.16 general purpose event 0 enable register 2 (gp0en2) register location: +3h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0-7 reserved reserved. these bits always return a value of zero.
w83877tf/w83877tg publication release date: may 2006 -121- revision 0.7 11.4.17 general purpose event 1 status register 1 (gp1sts1) register location: +4h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 bios_sts reserved reserved reserved reserved reserved reserved reserved bit name description 0 bios_sts the bios status bit. this bit is set when gbl_rls is set. if bios_en is set, setting gbl_rls will raise an smi event. writing a 1 to its bit location clears bios_sts and also clears gbl_rls. writing a 0 has no effect. 1-7 reserved reserved. 11.4.18 general purpose event 1 status register 2 (gp1sts2) register location: +5h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0-7 reserved reserved. these bits always return a value of zero.
w83877tf/w83877tg -122 - 11.4.19 general purpose event 1 enable register 1 (gp1en1) register location: +6h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 bios_en tmr_on reserved reserved reserved reserved reserved reserved bit name description 0 bios_en this bit is raise the smi event. when this bit is set and the acpi software writes a 1 to the gbl_rls bit, an s mi event is raised on the smi logic output. 1 tmr_on this bit is used to turn on the power management timer. 1: timer on ; 0: timer off. 2-7 reserved reserved. 11.4.20 general purpose event 1 enable register 2 (gp1en2) register location: +7h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 bios_rls bm_cntrl reserved reserved reserved reserved reserved reserved
w83877tf/w83877tg publication release date: may 2006 -123- revision 0.7 bit name description 0 bios_rls the bios release bit. this bit is used by the bios software to raise an event to the acpi software. the acpi software has a corresponding enable and status bit to control its ability to re ceive the acpi event. setting bios_rls sets gbl_sts, and it generates an sci interrupt if gbl_en is also set. writing a 1 to its bit position sets this bit and also sets the bm_sts bit. writing a 0 has no effect. this bit is cleared by writing a 1 to the gbl_sts bit. 1 bm_cntrl this bit is used to set the bm_sts bit and if the bm_rld bit is also set, then an sci interrupt is generated. writing a 1 sets bm_cntrl to 1 and also sets bm_sts. writing a 0 has no effect. writing a 1 to bm_sts clears bm_sts and also clears bm_cntrl. 2-7 reserved reserved. 11.4.21 bit map configuration registers table 11-4: bit map of pm1 register block register address power-on reset value d7 d6 d5 d4 d3 d2 d1 d0 pm1sts1 0000 0000 0 0 gbl_sts bm_sts 0 0 0 tmr_sts pm1sts2 +1h 0000 0000 wak_sts 0 0 0 0 0 0 0 pm1en1 +2h 0000 0000 0 0 gbl_en 0 0 0 0 tmr_en pm1en2 +3h 0000 0000 0 0 0 0 0 0 0 0 pm1ctl1 +4h 0000 0000 0 0 0 0 0 gbl_rls bm_rld sci_en pm1ctl2 +5h 0000 0000 0 0 0 0 0 0 0 0 pm1ctl3 +6h 0000 0000 0 0 0 0 0 0 0 0 pm1ctl4 +7h 0000 0000 0 0 0 0 0 0 0 0 pm1tmr1 +8h 0000 0000 tmr_val7 tmr_val6 tmr_val 5 tmr_val4 tmr_val3 tmr_val2 tmr_val1 tmr_val0 pm1tmr2 +9h 0000 0000 tmr_val15 tmr_val14 tmr_ val13 tmr_val12 tmr_val11 tmr_val10 tmr_val9 tmr_val8 pm1tmr3 +ah 0000 0000 tmr_val23 tmr_val22 tmr_va l21 tmr_val20 tmr_val19 tmr_val18 tmr_val17 tmr_val16 pm1tmr4 +bh 0000 0000 0 0 0 0 0 0 0 table 11-5: bit map of gpe register block register address power-on reset value d7 d6 d5 d4 d3 d2 d1 d0 gp0sts1 0000 0000 0 0 0 0 prts cists fdcscists urascists urbscists gp0sts2 +1h 0000 0000 0 0 0 0 0 0 0 0 gp0en1 +2h 0000 0000 0 0 0 0 prtscien fdcscien urascien urbscien gp0en2 +3h 0000 0000 0 0 0 0 0 0 0 0 gp1sts1 +4h 0000 0000 0 0 0 0 0 0 0 bios_sts gp1sts2 +5h 0000 0000 0 0 0 0 0 0 0 0 gp1en1 +6h 0000 0000 0 0 0 0 0 0 tmr_on bios_en gp1en2 +7h 0000 0000 0 0 0 0 0 0 bm_cntrl bios_rls
w83877tf/w83877tg -124 - 12. specifications 12.1 absolute maximum ratings parameter rating unit power supply voltage -0.5 to 7.0 v input voltage -0.5 to v dd +0.5 v operating temperature 0 to +70 note: exposure to conditions beyond those listed under absolute ma ximum ratings may adversely affect the life and reliability of the device. 12.2 dc characteristics (ta = 0 parameter sym. min. typ. max. uni conditions i/o 8tc - ttl level output pin with source-sink capab ilities of 8 ma; cmos level input voltage input low voltage v il -0.5 0.3xv v input high voltage v ih 0.7xv d v dd +0 v output low voltage v ol 0.4 v i ol = 8 ma output high voltage v oh 2.4 v i oh = -8 ma input high leakage i lih +10 i/o 12t - ttl level bi-directional pin with source-sink capabilities of 12 ma input low voltage v il -0.5 0.8 v input high voltage v ih 2.0 v dd +0 v output low voltage v ol 0.4 v i ol = 12 ma output high voltage v oh 2.4 v i oh = -12 ma input high leakage i lih +10 i/o 24t - ttl level bi-directional pin with source-sink capabilities of 24 ma input low voltage v il -0.5 0.8 v input high voltage v ih 2.0 v dd +0 v output low voltage v ol 0.4 v i ol = 24 ma output high voltage v oh 2.4 v i oh = -24 ma input high leakage i lih +10
w83877tf/w83877tg publication release date: may 2006 -125- revision 0.7 dc characteristics, continued parameter sy min. typ max. unit conditions out 8t - ttl level output pin with source-sink capabilities of 8 ma output low voltage v ol 0.4 v i ol = 8 ma output high voltage v oh 2.4 v i oh = -8 ma out 12t - ttl level output pin with source-sink capabilities of 12 ma output low voltage v ol 0.4 v i ol = 12 ma output high voltage v oh 2.4 v i oh = -12 ma od 12 - open-drain output pin with sink capabilities of 12 ma output low voltage v ol 0.4 v i ol = 12 ma od 24 - open-drain output pin with sink capabilities of 24 ma output low voltage v ol 0.4 v i ol = 24 ma in t - ttl level input pin input low voltage v il 0.8 v v dd = 5 v input high voltage v ih 2.0 v v dd = 5 v input high leakage i lih +10 a v in = v dd input low leakage i lil -10 a v in = 0v in ts - ttl level input pin schmitt-trigger input pin input low threshold v t- 0.5 0.8 1.1 v v dd = 5 v input high threshold v t+ 1.6 2.0 2.4 v v dd = 5 v hysteresis (v t+ - v t- ) v th 0.5 1.2 v v dd = 5 v input high leakage i lih +10 a v in = v dd input low leakage i lil -10 a v in = 0v in c - cmos level input pin input low voltage v il 0.3xv d v v dd = 5 v input high voltage v ih 0.7xv d v v dd = 5 v input high leakage i lih +10 a v in = v dd input low leakage i lil -10 a v in = 0v in cs - cmos level schmitt-triggered input pin input low threshold v t- 1.3 1.5 1.7 v v dd = 5 v input high threshold v t+ 3..2 3.5 3.8 v v dd = 5 v hysteresis (v t+ - v t- ) v th 1.5 2 v v dd = 5 v input high leakage i lih +10 a v in = v dd input low leakage i lil -10 a v in = 0v
w83877tf/w83877tg -126 - 12.3 ac characteristics 12.3.1 fdc: data rate = 1 mb/500 kb/300 kb/250 kb/sec. parameter sym. test conditions min. typ. (note 1) max. unit sa9-sa0, aen, dack , cs , setup time to ior
w83877tf/w83877tg publication release date: may 2006 -127- revision 0.7 ac characteristics, fdc continued parameter sym. test conditions min. typ. (note 1) max. unit iow or ior response time from drq t mrw 6/12 /20/24 s tc width t tc 135/220 /260 ns reset width t rst 1.8/3/3. 5 s index width t idx 0.5/0.9 /1.0 s dir setup time to step t dst 1.0/1.6 /2.0 s dir hold time from step t std 24/40/4 8 s step pulse width t stp 6.8/11.5 /13.8 7/11.7 /14 7.2/11.9 /14.2 s step cycle width t sc note 2 note 2 note 2 s wd pulse width t wdd 100/185 /225 125/210 /250 150/235 /275 s write precompensation t wpc 100/138 /225 125/210 /250 150/235 /275 s notes: 1. typical values for t = 25 c and normal supply voltage. 2. programmable from 2 ms through 32 ms in 2 ms increments.
w83877tf/w83877tg -128 - 12.3.2 uart/parallel port parameter symbol test conditions min. max. unit delay from stop to set interrupt t sint 9/16 baud rate delay from ior reset interrupt t rint 100 pf loading 1 12.3.3 parallel port mode parameters parameter sym. min. typ. max. unit pd0-7, index , strobe , a utofd delay from iow t1 100 ns irq delay from a ck , nfault t2 60 ns irq delay from iow t3 105 ns irq active low in ecp and epp modes t4 200 300 ns error active to irq active t5 105 ns
w83877tf/w83877tg publication release date: may 2006 -129- revision 0.7 12.3.4 epp data or address read cycle timing parameters parameter sym. min. max. unit ax valid to ior asserted t1 40 ns iochrdy deasserted to ior deasserted t2 0 ns ior deasserted to ax valid t3 10 10 ns ior deasserted to iow or ior asserted t4 40 ior asserted to iochrdy asserted t5 0 24 ns pd valid to sd valid t6 0 75 ns ior deasserted to sd hi-z (hold time) t7 0 40
w83877tf/w83877tg -130 - 12.3.5 epp data or address write cycle timing parameters parameter sym. min. max. unit ax valid to iow asserted t1 40 ns sd valid to asserted t2 10 ns iow deasserted to ax invalid t3 10 ns wait deasserted to iochrdy deasserted t4 0 ns command asserted to wait deasserted t5 10 ns iow deasserted to iow or ior asserted t6 40 ns iochrdy deasserted to iow deasserted t7 0 24 ns wait asserted to command asserted t8 60 160 ns iow asserted to wait asserted t9 0 70 ns pbdir low to write asserted t10 0 ns wait asserted to write asserted t11 60 185 ns wait asserted to write change t12 60 185 ns iow asserted to pd valid t13 0 50 ns wait asserted to pd invalid t14 0 ns pd invalid to command asserted t15 10 ns iow to command asserted t16 5 35 ns wait asserted to command asserted t17 60 210 ns wait deasserted to command deasserted t18 60 190 ns command asserted to wait deasserted t19 0 10
w83877tf/w83877tg publication release date: may 2006 -131- revision 0.7 12.3.6 parallel port fifo timing parameters parameter symbol min. max. unit data valid to nstrobe active t1 600 ns nstrobe active pulse width t2 600 ns data hold from nstrobe inactive t3 450 ns busy inactive to pd inactive t4 80 ns busy inactive to nstro be active t5 680 ns nstrobe active to bu sy active t6 500 ns 12.3.7 ecp parallel port for ward timing parameters parameter symbol min. max. unit nautofd valid to nstrobe asserted t1 0 60 ns pd valid to nstrobe asserted t2 0 60 ns busy deasserted to nautofd changed t3 80 180 ns busy deasserted to pd changed t4 80 180 ns nstrobe deasserted to busy deasserted t5 0 ns busy deasserted to nstrobe asserted t6 80 200 ns nstrobe asserted to busy asserted t7 0 ns busy asserted to nstrobe deasserted t8 80 180 ns 12.3.8 ecp parallel port reverse timing parameters parameter symbol min. max. unit pd valid to nack asserted t1 0 ns nautofd deasserted to pd changed t2 0 ns nautofd asserted to nack asserted t3 0 ns nautofd deasserted to nack deasserted t4 0 ns nack deasserted to nautofd asserted t5 80 200 ns pd changed to nautofd deasserted t6 80 200 ns
w83877tf/w83877tg -132 - 13. timing waveforms 13.1 fdc processor read operation wd write date aen sa0-sa9 cs twdd tar tdh tdf tra index tidx tidx index taw twd twa processor write operation terminal count reset ttc tc trst reset dma operation irq d0-d7 dack ior irq d0-d7 aen sa0-sa9 dack iow drive seek operation step dir tdst tstp tstd trr tr tfd tsc tmw (iow) tmr (ior) tma tam drq dack iow or ior tmcy taa tmrw tww twi tdw
w83877tf/w83877tg publication release date: may 2006 -133- revision 0.7 13.2 uart/parallel trint star data bits (5-8) parity stop tsint star parity data (5-8) stop (1-2) star tir thr tsi thr thrs tsti sin (receiver input data) irq3 or irq4 ior (read receiver buffer register) serial out (sout) iow (write thr) irq3 or irq4 ior (read tir) receiver timing transmitter timing
w83877tf/w83877tg -134 - 13.2.1 modem control timing ack irq7 ri ior (read msr) iow (write mcr) rts,dtr cts,dsr dcd modem control timing trim trim tsim irq3 or irq4
w83877tf/w83877tg publication release date: may 2006 -135- revision 0.7 13.3 parallel port 13.3.1 parallel port timing iow init, strobe autofd, slctin ack irq (spp) irq (epp or ecp) nfault (ecp) error (ecp) irq t1 t2 t3 t4 t5 t2 t4 pd<0:7>
w83877tf/w83877tg -136 - 13.3.2 epp data or address read cycle (epp version 1.9) write datastb t13 t16 t14 t17 t22 t18 t23 t24 t21 t25 t19 t15 t20 a ddrstb wait t26 t27 t28 pd<0:7> t1 iochrdy t3 t2 t4 t10 ior t5 t6 t7 t8 t9 sd<0:7> a<0:10>
w83877tf/w83877tg publication release date: may 2006 -137- revision 0.7 13.3.3 epp data or address write cycle (epp version 1.9) t3 a ddrstb a10-a0 iow iochrdy write datast t1 t2 wait t4 t5 t6 t20 t19 t 7 t9 t10 t11 t13 t15 t16 t17 t22 t8 t18 t21 t12 t14 sd<0:7> pd<0:7> pbdir
w83877tf/w83877tg -138 - 13.3.4 epp data or address read cycle (epp version 1.7) write datastb t13 t16 t14 t17 t22 t18 t23 t24 t21 t25 t19 t15 t20 a ddrstb wait t26 t27 t28 pd<0:7> t1 iochrdy t3 t2 t4 t10 ior t5 t6 t7 t8 t9 sd<0:7> a<0:10>
w83877tf/w83877tg publication release date: may 2006 -139- revision 0.7 13.3.5 epp data or address write cycle (epp version 1.7) t3 a ddrstb a10-a0 iochrdy write datast t1 t2 iow wait t4 t5 t6 t20 t19 t7 t9 t10 t11 t13 t15 t16 t17 t8 t18 t22 t22 sd<0:7> pd<0:7> 13.3.6 parallel port fifo timing nstrobe bus y > t3 >| >| >| t1 >| t2 t6 >| t5 t4 pd<0:7>
w83877tf/w83877tg -140 - 13.3.7 ecp parallel port forward timing t3 nautofd t1 t2 nstrobe busy t5 t7 t5 t6 t8 t4 pd<0:7> 13.3.8 ecp parallel port reverse timing t1 t5 nack nautofd t3 t6 t4 t5 t2 pd<0:7>
w83877tf/w83877tg publication release date: may 2006 -141- revision 0.7 14. application circuits 14.1 parallel port extension fdd 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1 printer port 13 25 12 24 11 23 10 22 9 21 8 20 7 19 6 18 5 17 4 16 3 15 2 14 1 jp13 we2/slct wd2/pe mob2/busy dsb2/ack pd7 pd6 pd5 dch2/pd4 rdd2/pd3 step2/slin wp2/pd2 dir2/init trk02/pd1 head2/err idx2/pd0 rwc2/afd stb jp 13a ext fdc dch2 trk02 rdd2 dir2 wp2 mob2 rwc2 dsb2 head2 step2 wd2 we2 idx2 parallel port extension fdd mode connection diagram
w83877tf/w83877tg -142 - 14.2 parallel port extension 2fdd 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1 printer port 13 25 12 24 11 23 10 22 9 21 8 20 7 19 6 18 5 17 4 16 3 15 2 14 1 jp13 we2/slct wd2/pe mob2/busy dsb2/ack pd5 dch2/pd4 rdd2/pd3 step2/slin wp2/pd2 dir2/init trk02/pd1 head2/err idx2/pd0 rwc2/afd stb jp 13a ext fdc dch2 trk02 rdd2 dir2 wp2 mob2 rwc2 dsb2 head2 step2 wd2 we2 idx2 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 dsa2 moa2 parallel port extension 2fdd connection diagram dsa2/pd7 moa2/pd6 14.3 four fdd mode g1 a1 b1 g2 a2 b2 1y0 1y1 1y2 1y3 2y0 2y1 2y2 2y3 dsa moa dsa dsb moa mob w83777f 74ls139 7407(2) mod moc mob dsc dsd dsb
w83877tf/w83877tg publication release date: may 2006 -143- revision 0.7 15. ordering information part no. package w83877tf 100-pin qfp W83877TD 100-pin lqfp w83877tg 100-pin qfp for lead-free
w83877tf/w83877tg -144 - 16. how to read the top marking example: the top marking of w83877tf 1st line: winbond logo 2nd line: the type number: w83877tf 3rd line: tracking code 719 a b 2 7039530 719 : packages made in '97 , week 19 a : assembly house id; a means ase, s means spil....etc b: ic revision; b means version b, c means version c 2 : wafers manufactured in winbond fab 2 7039530 : wafer production series lot number inbond w83877tf 719ab27039520 1st line: winbond logo 2nd line: the type number: w83877tg(lead-free package) 3rd line: tracking code 719 a b 2 7039530 719 : packages made in '97 , week 19 a : assembly house id; a means ase, s means spil....etc b: ic revision; b means version b, c means version c 2 : wafers manufactured in winbond fab 2 7039530 : wafer production series lot number inbond w83877tf 719ab27039520 g
w83877tf/w83877tg publication release date: may 2006 -145- revision 0.7 17. package dimension w83877tf (100-pin qfp) 51 50 31 30 1 80 81 100 2 1 a h d d e b eh e y a a seating plane l l 1 see detail f detail f c 1. dimension d & e do not include interlead flash. 2. dimension b does not include dambar protrusion/intrusion. 3. controlling dimension: millimeters 4. general appearance spec. should be based on final visual inspection spec. 0.10 0 12 0 0.004 3.30 0.10 0.130 0.004 notes: symbol min. nom. max. max. nom. min. dimension in inches dimension in mm 12 2.40 1.40 19.10 1.20 18.80 1.00 18.49 0.094 0.055 0.988 0.752 0.047 0.976 0.740 0.039 0.964 0.728 0.65 20.13 14.13 0.25 0.40 2.97 20.00 14.00 2.85 19.87 13.87 0.10 0.25 2.73 0.792 0.556 0.010 0.016 0.117 0.787 0.551 0.112 0.026 0.782 0.546 0.004 0.010 0.107 0.012 0.006 0.15 0.30 24.49 24.80 25.10 0.020 0.087 0.032 0.103 0.50 0.80 2.21 2.62 a b c d e h d h e l y a a l 1 1 2 e
w83877tf/w83877tg -146 - W83877TD (100-pin lqfp) 51 50 31 30 1 80 81 100 2 1 a h d d e b eh e y a a seating plane l l 1 see detail f detail f c 1. dimension d & e do not include interlead flash. 2. dimension b does not include dambar protrusion/intrusion. 3. controlling dimension: millimeters 4. general appearance spec. should be based on final visual inspection spec. 0.08 0 7 0 0.003 0.05 0.002 notes: symbol min. nom. max. max. nom. min. dimension in inches dimension in mm 7 1.00 0.75 16.10 0.60 16.00 0.45 15.90 0.039 0.030 0.870 0.634 0.024 0.866 0.630 0.018 0.862 0.626 0.65 20.10 14.10 0.20 0.38 1.45 20.00 14.00 1.40 19.90 13.90 0.10 0.22 1.35 0.791 0.555 0.008 0.015 0.057 0.787 0.551 0.055 0.026 0.783 0.547 0.004 0.009 0.053 0.013 0.006 0.15 0.32 21.90 22.00 22.10 0.020 0.032 0.498 0.802 a b c d e h d h e l y a a l 1 1 2 e 0.004 0.006 0.10 0.15
w83877tf/w83877tg publication release date: may 2006 -147- revision 0.7 important notice winbond products are not designed, intended, authorized or warranted for use as components in systems or equipment intended for surgi cal implantation, atomic energy control instruments, airplane or spaceship instrument s, transportation instruments, traffic signal instruments, combustion control instruments, or for other applications intended to support or sustain life. further more, winbond products are not intended for applications wherein failure of winbond products could result or lead to a situation wherein personal injury, death or severe property or environmental damage could occur. winbond customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify winbond for any damages resulting from such improper use or sales.


▲Up To Search▲   

 
Price & Availability of W83877TD

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X